Skip to content

Commit

Permalink
TST #851
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jul 8, 2023
1 parent bba62d2 commit 9f7ab09
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions apstools/devices/tests/test_aps_data_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,23 @@ def test_object(wf_name):
import dm

assert wf.api is not None

with pytest.raises(Exception) as exc:
# FIXME: will fail if run on APS subnet!
wf.workflows
err_str = str(exc.value)
# fmt: off
assert (
"Connection refused" in err_str
or
"invalid literal for int() with base 10" in err_str
)
# fmt: on

except ModuleNotFoundError:
pass

assert wf.idle is not None

assert wf.report_status() is None
assert wf.report_processing_stages() is None

with pytest.raises(Exception) as exc:
# FIXME: will fail if run on APS subnet!
wf.workflows
assert "Connection refused" in str(exc.value) or "invalid literal for int() with base 10" in str(exc.value)

0 comments on commit 9f7ab09

Please sign in to comment.