Skip to content

Commit

Permalink
removed unused tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maocorte committed Jun 25, 2024
1 parent 35739c0 commit 65ee88e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 94 deletions.
45 changes: 0 additions & 45 deletions api/tests/dao/current_dataset_dao_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,48 +123,3 @@ def test_get_all_current_datasets_by_model_uuid_paginated(self):
assert inserted_3.path == retrieved.items[2].path

assert len(retrieved.items) == 3

# def test_get_all_current_datasets_by_model_uuid(self):
# model = self.model_dao.insert(db_mock.get_sample_model())
# current_upload_1 = CurrentDataset(
# uuid=uuid4(),
# model_uuid=model.uuid,
# path='frank_file.csv',
# correlation_id_column='some_column',
# date=datetime.datetime.now(tz=datetime.UTC),
# )
# current_upload_2 = CurrentDataset(
# uuid=uuid4(),
# model_uuid=model.uuid,
# path='frank_file.csv',
# correlation_id_column='some_column',
# date=datetime.datetime.now(tz=datetime.UTC),
# )
# current_upload_3 = CurrentDataset(
# uuid=uuid4(),
# model_uuid=model.uuid,
# path='frank_file.csv',
# correlation_id_column='some_column',
# date=datetime.datetime.now(tz=datetime.UTC),
# )
# inserted_1 = self.current_dataset_dao.insert_current_dataset(current_upload_1)
# inserted_2 = self.current_dataset_dao.insert_current_dataset(current_upload_2)
# inserted_3 = self.current_dataset_dao.insert_current_dataset(current_upload_3)
#
# retrieved = self.current_dataset_dao.get_all_current_datasets_by_model_uuid(
# model.uuid
# )
#
# assert inserted_1.uuid == retrieved[0].uuid
# assert inserted_1.model_uuid == retrieved[0].model_uuid
# assert inserted_1.path == retrieved[0].path
#
# assert inserted_2.uuid == retrieved[1].uuid
# assert inserted_2.model_uuid == retrieved[1].model_uuid
# assert inserted_2.path == retrieved[1].path
#
# assert inserted_3.uuid == retrieved[2].uuid
# assert inserted_3.model_uuid == retrieved[2].model_uuid
# assert inserted_3.path == retrieved[2].path
#
# assert len(retrieved) == 3
49 changes: 0 additions & 49 deletions api/tests/dao/reference_dataset_dao_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,52 +94,3 @@ def test_get_all_reference_datasets_by_model_uuid_paginated(self):

assert len(retrieved.items) == 3

# def test_get_all_reference_datasets_by_model_uuid(self):
# model = self.model_dao.insert(db_mock.get_sample_model())
# reference_upload_1 = ReferenceDataset(
# uuid=uuid4(),
# model_uuid=model.uuid,
# path='frank_file.csv',
# date=datetime.datetime.now(tz=datetime.UTC),
# )
# reference_upload_2 = ReferenceDataset(
# uuid=uuid4(),
# model_uuid=model.uuid,
# path='frank_file.csv',
# date=datetime.datetime.now(tz=datetime.UTC),
# )
# reference_upload_3 = ReferenceDataset(
# uuid=uuid4(),
# model_uuid=model.uuid,
# path='frank_file.csv',
# date=datetime.datetime.now(tz=datetime.UTC),
# )
# inserted_1 = self.f_reference_dataset_dao.insert_reference_dataset(
# reference_upload_1
# )
# inserted_2 = self.f_reference_dataset_dao.insert_reference_dataset(
# reference_upload_2
# )
# inserted_3 = self.f_reference_dataset_dao.insert_reference_dataset(
# reference_upload_3
# )
#
# retrieved = (
# self.f_reference_dataset_dao.get_all_reference_datasets_by_model_uuid(
# model.uuid
# )
# )
#
# assert inserted_1.uuid == retrieved[0].uuid
# assert inserted_1.model_uuid == retrieved[0].model_uuid
# assert inserted_1.path == retrieved[0].path
#
# assert inserted_2.uuid == retrieved[1].uuid
# assert inserted_2.model_uuid == retrieved[1].model_uuid
# assert inserted_2.path == retrieved[1].path
#
# assert inserted_3.uuid == retrieved[2].uuid
# assert inserted_3.model_uuid == retrieved[2].model_uuid
# assert inserted_3.path == retrieved[2].path
#
# assert len(retrieved) == 3

0 comments on commit 65ee88e

Please sign in to comment.