Fixed tests for baseline e2e.
@@ -37,9 +37,10 @@ def test_e2e(example_project_root, config, session):
assert rate == 0.0
-def test_baseline(example_project_root, config, session):
+def test_baseline_with_explicit_session_file(example_project_root, config, session):
subprocess.check_call(
- [sys.executable, "-m", "cosmic_ray.cli", "baseline", config, str(session)], cwd=str(example_project_root)
+ [sys.executable, "-m", "cosmic_ray.cli", "baseline", config, "--session-file", session],
+ cwd=str(example_project_root),
)
with use_db(str(session), WorkDB.Mode.open) as work_db:
@@ -47,6 +48,13 @@ def test_baseline(example_project_root, config, session):
assert rate == 100.0
+def test_baseline_with_temp_session_file(example_project_root, config):
+ subprocess.check_call(
+ [sys.executable, "-m", "cosmic_ray.cli", "baseline", config],
+ cwd=str(example_project_root),
+ )
+
+
def test_importing(example_project_root, session):
config = "cosmic-ray.import.conf"
