Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Jul 3, 2023
1 parent ddb4c67 commit 8200866
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
3 changes: 1 addition & 2 deletions pioreactor/tests/test_execute_experiment_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from pioreactor.actions.leader.experiment_profile import hours_to_seconds
from pioreactor.experiment_profiles.profile_struct import Action
from pioreactor.experiment_profiles.profile_struct import Metadata
from pioreactor.experiment_profiles.profile_struct import Plugin
from pioreactor.experiment_profiles.profile_struct import Profile
from pioreactor.pubsub import subscribe_and_callback

Expand All @@ -29,7 +28,7 @@ def test_execute_experiment_profile_order(mock_load_and_verify_profile_file):

profile = Profile(
experiment_profile_name="test_profile",
plugins=[Plugin(name="test_plugin", version="1.0.0")],
plugins=[],
common={"job1": {"actions": [action1]}},
pioreactors={"unit1": {"jobs": {"job2": {"actions": [action2, action3]}}}},
metadata=Metadata(author="test_author"),
Expand Down
10 changes: 0 additions & 10 deletions pioreactor/tests/test_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,3 @@ def test_run_job_with_monitor() -> None:
pause()

assert any("pio run example_plugin" in msg["message"] for msg in bucket)


def test_state_is_published_when_asked() -> None:
unit = get_unit_name()
exp = UNIVERSAL_EXPERIMENT

with Monitor(unit=unit, experiment=exp) as m:
time.sleep(1)
publish(f"pioreactor/{unit}/{exp}/{m.job_name}/flicker_led_response_okay", "empty")
time.sleep(10)

0 comments on commit 8200866

Please sign in to comment.