Skip to content

Commit eec23b5

Browse files
committed
add paginator test to pokemon
1 parent 910ca27 commit eec23b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ create-pokemon-pipeline-interactive:
3232

3333
# e2e test helpers
3434
create-e2e-pokemon-pipeline:
35-
poetry run dlt-openapi init pokemon --path tests/cases/e2e_specs/pokeapi.yml --global-limit 1 --no-interactive
35+
poetry run dlt-openapi init pokemon --path tests/cases/e2e_specs/pokeapi.yml --global-limit 2 --no-interactive
3636

3737
run-pokemon-pipeline:
3838
cd pokemon-pipeline && poetry run python pipeline.py

tests/e2e/test_pokemon_pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ def test_pokemon_pipeline() -> None:
88
db = duckdb.connect(POKE_DUCKDB_FILE)
99

1010
# there should be 20 entries
11-
assert db.sql("SELECT count (*) from pokemon_data.pokemon").fetchone()[0] == 20
11+
assert db.sql("SELECT count (*) from pokemon_data.pokemon").fetchone()[0] == 40
1212

1313
# there should be 20 entries with pokemon details loaded
1414
# (the id is only loaded on the full request)
15-
assert db.sql("SELECT count (*) from pokemon_data.pokemon as p WHERE p.id IS NOT NULL").fetchone()[0] == 20
15+
assert db.sql("SELECT count (*) from pokemon_data.pokemon as p WHERE p.id IS NOT NULL").fetchone()[0] == 40

0 commit comments

Comments
 (0)