Commit 5b144a38 authored by Samuel GAIST's avatar Samuel GAIST

[test][experiments] Add test for non image based plotting

parent 7a08e951
Pipeline #40316 passed with stage
in 4 minutes and 13 seconds
......@@ -83,6 +83,30 @@ class TestLocal(core.AssetLocalTest):
def test_create(self, obj=None):
nose.SkipTest("Experiment can't be created")
@slow
def test_plot_non_image_local_results(self):
obj = "user/user/single/1/no_image_plotter"
cache_path = os.path.join(tmp_prefix, "cache")
index_experiment_dbs(obj)
exit_code, outputs = self.call("run", obj, prefix=prefix, cache=cache_path)
nose.tools.eq_(exit_code, 0, outputs)
# now push the new object and then delete it remotely
exit_code, outputs = self.call(
"plot",
"--output-folder=%s" % tmp_prefix,
obj,
prefix=prefix,
cache=cache_path,
)
nose.tools.eq_(exit_code, 0, outputs)
generated_files = [
file_ for file_ in os.listdir(tmp_prefix) if file_.endswith(".json")
]
nose.tools.assert_true(generated_files)
class TestOnline(core.OnlineAssetTestCase):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment