Skip to content

Commit

Permalink
#119: Fix entity_helper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Feb 2, 2021
1 parent 3393f58 commit fc73642
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions test/db/test_entity_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,13 @@ def test_valid_to_dict(self, datafile_entity):
"fileSize": 64,
"datafileModTime": str(Constants.TEST_MOD_CREATE_DATETIME),
"datafileCreateTime": str(Constants.TEST_MOD_CREATE_DATETIME),
"dataset": 1,
"doi": "test doi",
"description": "test description",
"createId": "test create id",
"modId": "test mod id",
"datafileFormat": 1,
"createTime": str(Constants.TEST_MOD_CREATE_DATETIME),
"DATASET": {
"dataset": {
"id": None,
"createTime": None,
"modTime": None,
Expand All @@ -105,7 +104,7 @@ def test_valid_to_dict(self, datafile_entity):
"type": None,
},
},
"DATASET",
"dataset",
id="Dataset",
),
pytest.param(
Expand All @@ -118,20 +117,18 @@ def test_valid_to_dict(self, datafile_entity):
"fileSize": 64,
"datafileModTime": str(Constants.TEST_MOD_CREATE_DATETIME),
"datafileCreateTime": str(Constants.TEST_MOD_CREATE_DATETIME),
"dataset": 1,
"doi": "test doi",
"description": "test description",
"createId": "test create id",
"modId": "test mod id",
"datafileFormat": 1,
"createTime": str(Constants.TEST_MOD_CREATE_DATETIME),
"DATASET": {
"dataset": {
"id": None,
"createTime": None,
"modTime": None,
"createId": None,
"modId": None,
"investigation": None,
"complete": None,
"description": None,
"doi": None,
Expand All @@ -141,7 +138,7 @@ def test_valid_to_dict(self, datafile_entity):
"startDate": None,
"sample": None,
"type": None,
"INVESTIGATION": {
"investigation": {
"id": None,
"createId": None,
"createTime": None,
Expand All @@ -160,7 +157,7 @@ def test_valid_to_dict(self, datafile_entity):
},
},
},
{"DATASET": "INVESTIGATION"},
{"dataset": "investigation"},
id="Dataset including investigation",
),
],
Expand Down

0 comments on commit fc73642

Please sign in to comment.