Skip to content
Snippets Groups Projects
Commit 54ef99bd authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Merge branch 'gseagen_tests' into 'master'

Change type check in tests

See merge request !62
parents b08d2f3a 6a3d56d1
No related branches found
No related tags found
1 merge request!62Change type check in tests
Pipeline #20931 passed with warnings
......@@ -20,12 +20,12 @@ class TestGSGHeader(unittest.TestCase):
self.header = GSG_READER.header
def test_str_byte_type(self):
assert type(self.header["gSeaGenVer"]) in AWKWARD_STR_CLASSES
assert type(self.header["GenieVer"]) in AWKWARD_STR_CLASSES
assert type(self.header["gSeaGenVer"]) in AWKWARD_STR_CLASSES
assert type(self.header["InpXSecFile"]) in AWKWARD_STR_CLASSES
assert type(self.header["Flux1"]) in AWKWARD_STR_CLASSES
assert type(self.header["Flux2"]) in AWKWARD_STR_CLASSES
assert isinstance(self.header["gSeaGenVer"], str)
assert isinstance(self.header["GenieVer"], str)
assert isinstance(self.header["gSeaGenVer"], str)
assert isinstance(self.header["InpXSecFile"], str)
assert isinstance(self.header["Flux1"], str)
assert isinstance(self.header["Flux2"], str)
def test_values(self):
assert self.header["RunNu"] == 1
......
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