Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nevoodoo committed Jan 31, 2024
1 parent 7c9eb6d commit 0d65777
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion db/python/layers/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ async def create_analysis(
project=project,
)

await self.ft.create_or_update_analysis_output_files_from_json(analysis_id=new_analysis_id, json_dict=analysis.output)
if analysis.output:
await self.ft.create_or_update_analysis_output_files_from_json(analysis_id=new_analysis_id, json_dict=analysis.output)

return new_analysis_id

Expand Down
2 changes: 1 addition & 1 deletion test/test_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async def test_get_analysis(self):
meta={},
active=True,
author=None,
)
).copy(update={'output_files': []})
]

self.assertEqual(analyses, expected)

0 comments on commit 0d65777

Please sign in to comment.