smnall fix to the test suite. (#1944)

I noticed a few tests failed when run individually, but not as a suite.

 #1942
This commit is contained in:
bmccandless
2020-10-23 15:14:31 -07:00
committed by GitHub
parent 2fa206f2ad
commit c106ebc525
2 changed files with 7 additions and 5 deletions
+5 -5
View File
@@ -21,8 +21,8 @@ class CLIPLaunchTests(unittest.TestCase):
shutil.rmtree(cls.tmp_dir)
def test_dump_default_config(self):
os.system(f"cellxgene launch --dump-default-config > {self.tmp_dir}/test_config_dump.txt")
with open(f"{self.tmp_dir}/expected_config_dump.txt", "w") as expected_config:
expected_config.write(yaml.dump(default_config))
filecmp.cmp(f"{self.tmp_dir}/expected_config_dump.txt", f"{self.tmp_dir}/test_config_dump.txt")
def test_dump_default_config(self):
os.system(f"cellxgene launch --dump-default-config > {self.tmp_dir}/test_config_dump.txt")
with open(f"{self.tmp_dir}/expected_config_dump.txt", "w") as expected_config:
expected_config.write(yaml.dump(default_config))
filecmp.cmp(f"{self.tmp_dir}/expected_config_dump.txt", f"{self.tmp_dir}/test_config_dump.txt")