Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove a testing workaround #273

Merged
merged 1 commit into from
Jan 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions kadi/commands/tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,24 +305,6 @@ def test_commands_create_archive_regress(tmpdir, version_env):

cmds_local = commands.get_cmds(start + 3, stop - 3)

# FIXME: workaround that flight archive does not have these non-load
# commands added in PR #248. If flight archive is regenerated, this
# should be removed.
def get_ok(cmds):
ignore = (cmds["type"] == "LOAD_EVENT") & (
cmds["event_type"] == "SCHEDULED_STOP_TIME"
)
ignore |= (
(cmds["type"] == "LOAD_EVENT")
& (cmds["source"] == "CMD_EVT")
& np.isin(cmds["event_type"], ["LOAD_NOT_RUN", "OBSERVING_NOT_RUN"])
)
ignore |= (cmds["tlmsid"] == "CODISASX") & (cmds["source"] == "CMD_EVT")
return ~ignore

cmds_local = cmds_local[get_ok(cmds_local)]
cmds_flight = cmds_flight[get_ok(cmds_flight)]

cmds_local.fetch_params()
if len(cmds_flight) != len(cmds_local):
# Code to debug problems, leave commented for production
Expand Down