Skip to content
Snippets Groups Projects
Commit 052a44b5 authored by Sascha Klawohn's avatar Sascha Klawohn
Browse files

Merge branch 'test-leaves-cas-image' into 'develop'

Remove CAS image after test

See merge request !1674
parents 9d45cbf6 2c902397
No related branches found
No related tags found
1 merge request!1674Remove CAS image after test
Pipeline #196064 passed
......@@ -17,21 +17,18 @@
#
import os
from nomad.datamodel.datamodel import EntryArchive
from nomad.datamodel.context import ClientContext
from nomad.utils.exampledata import ExampleData
import pytest
from tests.normalizing.conftest import run_processing, run_normalize
from nomad.datamodel.data import User
from nomad.datamodel.datamodel import EntryArchive
from nomad.utils.exampledata import ExampleData
from tests.normalizing.conftest import run_normalize
def test_substance(raw_files_function, test_user, mongo_function):
directory = 'tests/data/datamodel/metainfo/eln'
mainfile = 'test_substance.archive.yaml'
upload_id = 'test_upload_id'
data = ExampleData(main_author=test_user)
data.create_upload(upload_id=upload_id, published=False)
context = ClientContext(local_dir=directory, upload_id=upload_id)
......@@ -52,6 +49,8 @@ def test_substance(raw_files_function, test_user, mongo_function):
assert 'I' in test_archive.results.material.elements
assert 'Pb' in test_archive.results.material.elements
os.unlink(os.path.join(directory, 'cas_10101-63-0_image.svg'))
def test_ensemble(raw_files_function, test_user, mongo_function):
directory = 'tests/data/datamodel/metainfo/eln'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment