diff --git a/.github/workflows/test_and_types.yml b/.github/workflows/test_and_types.yml index b119a918..f7fce871 100644 --- a/.github/workflows/test_and_types.yml +++ b/.github/workflows/test_and_types.yml @@ -1,6 +1,6 @@ name: Test on main branch env: - PYTHON_VERSION: "3.10" + PYTHON_VERSION: "3.11" on: pull_request: @@ -60,4 +60,4 @@ jobs: run: pyright - name: Lint with black - run: black -t py310 --check . + run: black -t py311 --check . diff --git a/tests/athena_tests.py b/tests/athena_tests.py index cc2dbe3a..26a4279b 100644 --- a/tests/athena_tests.py +++ b/tests/athena_tests.py @@ -548,7 +548,7 @@ async def test_batch_size_zero(self): async def test_extra_sql_where(self): self.domains = ["seznam.cz"] - where_clause = "cc.fetch_status != 200" + where_clause = 'cc.warc_filename = "filename3"' self.iterator = AthenaAggregator.AthenaAggregatorIterator( aws_client=self.aws_client, domains=self.domains, diff --git a/tests/utils.py b/tests/utils.py index 108ec1d0..d46aa2b7 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -27,7 +27,7 @@ def seed_db(self): 100, 200, "CC-MAIN-2021-05", - 100, + 200, "warc", ], [ @@ -53,7 +53,7 @@ def seed_db(self): [ "seznam.cz", "2022-01-03 00:00:00.000", - "filename3", + "filename6", 100, 200, "CC-MAIN-2022-05", @@ -63,7 +63,7 @@ def seed_db(self): [ "seznam.cz", "2023-01-03 00:00:00.000", - "filename3", + "filename4", 100, 200, "CC-MAIN-2023-09",