HEL-892: apply user exclusion to the 155-workflow delivery scope
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -31,8 +31,8 @@ async def test_all_sources_and_repeat_after_restart(tmp_path):
|
||||
before = dict(conn.execute("SELECT * FROM workflows WHERE id=1").fetchone())
|
||||
report = import_library(conn, ROOT, source_commit="fixture")
|
||||
assert report["total"] == 156
|
||||
assert report["states"] == {"needs_conversion": 146, "pending_check": 10}
|
||||
assert conn.execute("SELECT count(*) FROM workflows WHERE is_enabled=0").fetchone()[0] == 156
|
||||
assert report["states"] == {"needs_conversion": 145, "pending_check": 10}
|
||||
assert conn.execute("SELECT count(*) FROM workflows WHERE is_enabled=0").fetchone()[0] == 155
|
||||
assert dict(conn.execute("SELECT * FROM workflows WHERE id=1").fetchone()) == before
|
||||
for row in conn.execute("SELECT * FROM workflows WHERE source_repo_path IS NOT NULL"):
|
||||
doc = json.loads(row["doc_json"])
|
||||
@@ -45,8 +45,8 @@ async def test_all_sources_and_repeat_after_restart(tmp_path):
|
||||
await migrate_db(db)
|
||||
conn = get_db(db)
|
||||
second = import_library(conn, ROOT, source_commit="fixture")
|
||||
assert second["counts"] == {"skipped": 156}
|
||||
assert conn.execute("SELECT count(*) FROM workflows").fetchone()[0] == 157
|
||||
assert second["counts"] == {"skipped": 155, "user_excluded": 1}
|
||||
assert conn.execute("SELECT count(*) FROM workflows").fetchone()[0] == 156
|
||||
conn.close()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user