-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2111036
commit 749357d
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import pytest | ||
|
||
|
||
@pytest.fixture(scope="function") | ||
def create_upload_id(): | ||
"""Create upload id for test purpose.""" | ||
... | ||
|
||
|
||
@pytest.fixture(scope="function") | ||
def add_raw_files_to_test_upload(): | ||
"""Include test files to the upload dir.""" | ||
... | ||
|
||
|
||
def test_upload_files(): | ||
"""Test if files are included in upload folder.""" | ||
... | ||
|
||
|
||
def test_run_processing_on_schema(): | ||
"""Run the processing function on schema file (schema.archive.yaml).""" | ||
... | ||
|
||
|
||
def test_nxs_file_is_generated(): | ||
"""Check if nexus file has been created.""" | ||
... | ||
|
||
|
||
def test_parse_nxs_file(): | ||
"""Parse nexus file.""" | ||
... | ||
|
||
|
||
def test_metainfo_generation_from_nexus_file(): | ||
"""Check if metainfo has been generated from nexus file properly. | ||
TODO: Ensure if this part parsing metadata in elastic search. Usually | ||
this automatically include data curation in elastic search service. | ||
""" | ||
... | ||
|
||
|
||
def test_upload_in_properly_deleted(): | ||
"""Delete the upload after finishing the test.""" | ||
... |