mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 17:08:12 +08:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user