Skip to content

Commit

Permalink
Update test for geochem_norm
Browse files Browse the repository at this point in the history
  • Loading branch information
morganjwilliams committed Jan 25, 2022
1 parent 73455fe commit fda6c8d
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions test/geochem/geochem_norm.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import unittest
import pyrolite

import numpy as np
from pyrolite.util.synthetic import normal_frame
from pyrolite.geochem.norm import (
get_reference_files,
update_database,
Composition,
get_reference_composition,
all_reference_compositions,
)
from pyrolite.util.general import temp_path, remove_tempdir

import pyrolite
from pyrolite.geochem.norm import (Composition, all_reference_compositions,
get_reference_composition,
get_reference_files, update_database)
from pyrolite.util.general import remove_tempdir, temp_path
from pyrolite.util.meta import pyrolite_datafolder
from pyrolite.util.synthetic import normal_frame


class TestComposition(unittest.TestCase):
Expand All @@ -28,7 +26,8 @@ def test_describe(self):
desc = C.describe()
self.assertIsInstance(desc, str)
self.assertIn(C.name, desc)
self.assertIn('doi', desc)
if C.doi is not None:
self.assertIn("doi", desc)

def test_str(self):
C = Composition(self.filename)
Expand Down

0 comments on commit fda6c8d

Please sign in to comment.