fixes
This commit is contained in:
@@ -6,6 +6,7 @@ import os
|
||||
import json
|
||||
from pathlib import Path
|
||||
from unittest.mock import patch
|
||||
from src import paths
|
||||
|
||||
|
||||
def test_track_proposal_editing(app_instance):
|
||||
@@ -30,7 +31,7 @@ def test_track_proposal_editing(app_instance):
|
||||
assert app_instance.proposed_tracks[0]['title'] == "New Title"
|
||||
|
||||
|
||||
def test_conductor_setup_scan(app_instance, tmp_path):
|
||||
def test_conductor_setup_scan(app_instance, tmp_path, monkeypatch):
|
||||
"""
|
||||
Verifies that the conductor setup scan properly iterates through the conductor directory,
|
||||
counts files and lines, and identifies active tracks.
|
||||
@@ -44,6 +45,9 @@ def test_conductor_setup_scan(app_instance, tmp_path):
|
||||
(cond_dir / "tracks").mkdir(exist_ok=True)
|
||||
(cond_dir / "tracks" / "track1").mkdir(exist_ok=True)
|
||||
|
||||
monkeypatch.setenv('SLOP_CONDUCTOR_DIR', str((tmp_path / 'conductor').resolve()))
|
||||
paths.reset_resolved()
|
||||
|
||||
app_instance._cb_run_conductor_setup()
|
||||
|
||||
# ANTI-SIMPLIFICATION: Assert that the summary output correctly counts files/lines/tracks
|
||||
|
||||
Reference in New Issue
Block a user