Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Nov 27, 2024
1 parent d399170 commit 117c702
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/manager/core/test_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ class Mock(WorkSweepMonitor):
w4.presentation_ready = True

w2.presentation_ready = False
w3.presentation_ready = None
w3.presentation_ready = False

# Two Collections, each with one book.
c1 = db.collection()
Expand Down
5 changes: 4 additions & 1 deletion tests/manager/scripts/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ def test_bad_arguments(self, db: DatabaseTransactionFixture):

# Try to create a lane for a nonexistent library.
with pytest.raises(ValueError) as excinfo:
script.do_run(db.session, ["--library-short-name=nosuchlibrary"])
script.do_run(
db.session,
["--library-short-name=nosuchlibrary", "--display-name=name"],
)
assert 'No such library: "nosuchlibrary".' in str(excinfo.value)

def test_create_lane(self, db: DatabaseTransactionFixture):
Expand Down

0 comments on commit 117c702

Please sign in to comment.