Skip to content

Commit

Permalink
[no ci] test_equip: test correct item codes returned for multiple spe…
Browse files Browse the repository at this point in the history
…cified pkgs
  • Loading branch information
EvaJanouskova committed May 30, 2024
1 parent 3753bc6 commit b34fb01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_equipment.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ def test_core_functionality_of_equipment_class(seed):
assert {1} == eq_default.from_pkg_names(pkg_names='PkgWith1')
# if the pkg only stands alone
assert {3} == eq_default.from_pkg_names(pkg_names='PkgWith3')
# Lookup the item_codes that belong to multiple specified packages.
assert {0, 1, 3} == eq_default.from_pkg_names(pkg_names={'PkgWith0+1', 'PkgWith3'})
assert {1, 3} == eq_default.from_pkg_names(pkg_names={'PkgWith1', 'PkgWith3'})

# - Error thrown when package is not recognised
with pytest.raises(ValueError):
Expand Down

0 comments on commit b34fb01

Please sign in to comment.