Skip to content
Snippets Groups Projects
Commit 0a40676a authored by David Verelst's avatar David Verelst
Browse files

prepost.Simulations: only test txt file, not dict

parent d6c6ed01
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -55,11 +55,14 @@ class TestGenerateInputs(unittest.TestCase):
# for the pickled file we can just read it
remote = os.path.join(p_root, tmpl.PROJECT, 'remote', 'prepost')
ref = os.path.join(p_root, tmpl.PROJECT, 'ref', 'prepost')
with open(os.path.join(remote, 'remote.pkl'), 'rb') as FILE:
pkl_remote = pickle.load(FILE)
with open(os.path.join(ref, 'remote.pkl'), 'rb') as FILE:
pkl_ref = pickle.load(FILE)
self.assertTrue(pkl_remote == pkl_ref)
cmp = filecmp.cmp(os.path.join(remote, 'remote_tags.txt'),
os.path.join(ref, 'remote_tags.txt'), shallow=False)
self.assertTrue(cmp)
# with open(os.path.join(remote, 'remote.pkl'), 'rb') as FILE:
# pkl_remote = pickle.load(FILE)
# with open(os.path.join(ref, 'remote.pkl'), 'rb') as FILE:
# pkl_ref = pickle.load(FILE)
# self.assertTrue(pkl_remote == pkl_ref)
if __name__ == "__main__":
......
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