Skip to content

Commit

Permalink
Update data source creator
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
  • Loading branch information
kevjumba committed Mar 2, 2022
1 parent fbe94f1 commit 43fe913
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions sdk/python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,20 +199,12 @@ def cleanup():

@pytest.fixture(scope="session")
def redis_universal_data_sources(request, local_redis_environment):
entities = construct_universal_entities()
datasets = construct_universal_datasets(
entities, local_redis_environment.start_date, local_redis_environment.end_date
)
datasources = construct_universal_data_sources(
datasets, local_redis_environment.data_source_creator
)

def cleanup():
# logger.info("Running cleanup in %s, Request: %s", worker_id, request.param)
local_redis_environment.data_source_creator.teardown()

request.addfinalizer(cleanup)
return entities, datasets, datasources
return construct_universal_test_data(local_redis_environment)


@pytest.fixture(scope="session")
Expand Down

0 comments on commit 43fe913

Please sign in to comment.