testing if coverall will fail build

This commit is contained in:
Jonas Depoix 2024-11-11 12:30:22 +01:00
parent ed4068479c
commit 0967845a3d
3 changed files with 7 additions and 7 deletions

View File

@ -52,7 +52,7 @@ jobs:
flag-name: run-python-${{ matrix.python-version }}
parallel: true
finish:
report-coverage:
needs: test
runs-on: ubuntu-latest

View File

@ -373,7 +373,7 @@ This code uses an undocumented part of the YouTube API, which is called by the Y
To setup the project locally run (requires [poetry](https://python-poetry.org/docs/) to be installed):
```shell
poetry install
poetry install --with test,dev
```
There's [poe](https://github.com/nat-n/poethepoet?tab=readme-ov-file#quick-start) tasks to run tests, coverage, the linter and formatter (you'll need to pass all of those for the build to pass):

View File

@ -406,8 +406,8 @@ class TestYouTubeTranscriptApi(TestCase):
with self.assertRaises(CookiePathInvalid):
YouTubeTranscriptApi._load_cookies(bad_cookies, "GJLlxj_dtq8")
def test_load_cookies__no_valid_cookies(self):
dirname, filename = os.path.split(os.path.abspath(__file__))
expired_cookies = dirname + "/expired_example_cookies.txt"
with self.assertRaises(CookiesInvalid):
YouTubeTranscriptApi._load_cookies(expired_cookies, "GJLlxj_dtq8")
# def test_load_cookies__no_valid_cookies(self):
# dirname, filename = os.path.split(os.path.abspath(__file__))
# expired_cookies = dirname + "/expired_example_cookies.txt"
# with self.assertRaises(CookiesInvalid):
# YouTubeTranscriptApi._load_cookies(expired_cookies, "GJLlxj_dtq8")