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

skip test_report.py::test_target_summary_or/er #316

Merged
merged 2 commits into from
Jan 7, 2025
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
22 changes: 22 additions & 0 deletions mica/report/tests/test_report.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
import getpass

import pytest

import mica.report.report

user = getpass.getuser()

try:
import ska_dbi.sqsh

with ska_dbi.sqsh.Sqsh(
server="sqlsao", dbi="sybase", user=user, database="axafvv"
) as db:
HAS_SYBASE_ACCESS = True
except Exception:
HAS_SYBASE_ACCESS = False


@pytest.mark.skipif(
"not HAS_SYBASE_ACCESS", reason="Report test requires Sybase VV access"
)
def test_target_summary_or():
"""
Test the target_summary method for an OR.
Expand All @@ -16,6 +35,9 @@ def test_target_summary_or():
assert summary["soe_st_sched_date"] == "Nov 14 2000 12:49AM"


@pytest.mark.skipif(
"not HAS_SYBASE_ACCESS", reason="Report test requires Sybase VV access"
)
def test_target_summary_er():
"""
Test that target_summary for an ER obsid returns None"""
Expand Down
Loading