From 0aabdafce1163d0564e9edd25430c2720e110497 Mon Sep 17 00:00:00 2001 From: Rushikesh Todkar <98420315+RushiT0122@users.noreply.github.com> Date: Thu, 2 May 2024 20:27:24 +0530 Subject: [PATCH] Reduce integration test execution time --- tests/base.py | 2 +- tests/test_sync_canary.py | 35 ----------------------------------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 tests/test_sync_canary.py diff --git a/tests/base.py b/tests/base.py index fd68374..e0f0db5 100644 --- a/tests/base.py +++ b/tests/base.py @@ -246,7 +246,7 @@ def run_and_verify_check_mode(self, conn_id): def get_properties(self, original_properties=True): properties = { - 'start_date': '2017-01-01T00:00:00Z', + 'start_date': '2021-01-01T00:00:00Z', 'username': os.environ['TAP_MAMBU_USERNAME'], 'subdomain': os.environ['TAP_MAMBU_SUBDOMAIN'], 'page_size': '100' diff --git a/tests/test_sync_canary.py b/tests/test_sync_canary.py deleted file mode 100644 index 380ed7b..0000000 --- a/tests/test_sync_canary.py +++ /dev/null @@ -1,35 +0,0 @@ -""" -Test that with no fields selected for a stream automatic fields are still replicated -""" -from tap_tester import connections -from base import MambuBaseTest - -class SyncCanaryTest(MambuBaseTest): - """ - Smoke test - """ - - @staticmethod - def name(): - return "tap_tester_mambu_sync_canary_test" - - def test_run(self): - """ - Run tap in check mode, then select all streams and all fields within streams. Run a sync and - verify exit codes do not throw errors. This is meant to be a smoke test for the tap. If this - is failing do not expect any other tests to pass. - """ - conn_id = connections.ensure_connection(self) - self.run_and_verify_check_mode(conn_id) - - self.select_and_verify_fields(conn_id) - - record_count_by_stream = self.run_and_verify_sync(conn_id) - - - # Assert all expected streams synced at least one record - for stream in self.expected_streams(): - with self.subTest(stream=stream): - self.assertGreater(record_count_by_stream.get(stream, 0), - 0, - msg="{} did not sync any records".format(stream))