Skip to content

Commit

Permalink
Fix tests due to updated fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardWez committed Nov 21, 2023
1 parent d07f813 commit b026e77
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tests/test_elx/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_config_interpolation_values(runner: Runner):
"""
Make sure the tap and target names are correct.
"""
assert runner.interpolation_values["TAP_EXECUTABLE"] == "tap-smoke-test"
assert runner.interpolation_values["TAP_EXECUTABLE"] == "tap-mock-fixture"
assert runner.interpolation_values["TARGET_EXECUTABLE"] == "target-jsonl"


Expand All @@ -39,4 +39,4 @@ def test_config_interpolation_target_values(tap: Tap):

runner = Runner(tap, target)

assert runner.target.config["tap_name"] == "tap_smoke_test"
assert runner.target.config["tap_name"] == "tap_mock_fixture"
12 changes: 6 additions & 6 deletions tests/test_elx/test_singer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_singer_can_discover_executable(singer: Singer):
"""
Test that the singer executable can be discovered.
"""
assert singer.executable == "tap-smoke-test"
assert singer.executable == "tap-mock-fixture"


def test_singer_can_install(singer: Singer):
Expand Down Expand Up @@ -71,8 +71,8 @@ def test_singer_dynamic_config():
Make sure the Singer instance is able to handle dynamic config.
"""
singer = Singer(
executable="tap-smoke-test",
spec="git+https://github.com/meltano/tap-smoke-test.git",
executable="tap-mock-fixture",
spec="git+https://github.com/quantile-taps/tap-mock-fixture.git",
config=lambda: {},
)

Expand All @@ -84,8 +84,8 @@ def test_singer_config_interpolation(runner: Runner):
Make sure the Singer instance is able to handle config interpolation.
"""
singer = Singer(
executable="tap-smoke-test",
spec="git+https://github.com/meltano/tap-smoke-test.git",
executable="tap-mock-fixture",
spec="git+https://github.com/quantile-taps/tap-mock-fixture.git",
config={
"target_schema": "{TAP_NAME}",
},
Expand All @@ -94,4 +94,4 @@ def test_singer_config_interpolation(runner: Runner):
# Attach the runner
singer.runner = runner

assert singer.config == {"target_schema": "tap_smoke_test"}
assert singer.config == {"target_schema": "tap_mock_fixture"}
2 changes: 1 addition & 1 deletion tests/test_elx/test_tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_tap_discovery(tap: Tap):
# Make sure the catalog is of the right type.
assert type(tap.catalog) == Catalog
# Make sure the catalog has the right number of streams.
assert len(tap.catalog.streams) == 1
assert len(tap.catalog.streams) == 2
# Make sure the streams are of the right type.
assert type(tap.catalog.streams[0]) == Stream

Expand Down

0 comments on commit b026e77

Please sign in to comment.