Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kessler-frost committed Aug 29, 2023
1 parent 3c444e2 commit 1bd5a19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ jobs:
run: |
covalent db migrate
if [ "${{ matrix.backend }}" = 'dask' ] ; then
covalent start -d
covalent start
elif [ "${{ matrix.backend }}" = 'local' ] ; then
covalent start -d --no-cluster
covalent start --no-cluster
else
echo "Invalid backend specified in test matrix."
exit 1
Expand Down
3 changes: 1 addition & 2 deletions tests/covalent_dispatcher_tests/_cli/service_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1150,8 +1150,7 @@ def test_graceful_start_permission_exception(mocker):
click_secho_mock = mocker.patch("covalent_dispatcher._cli.service.click.secho")

runner = CliRunner()
result = runner.invoke(start)
assert result.exit_code == 1
runner.invoke(start)

assert graceful_start_mock.called_once()
assert click_secho_mock.call_count == 3

0 comments on commit 1bd5a19

Please sign in to comment.