Skip to content

Commit

Permalink
Newcandidate 371rc4 (#1818)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlpstsci authored Jun 14, 2024
1 parent a4540d9 commit a5cb275
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 188 deletions.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
def pytest_addoption(parser):
"""Support options for the pytest test_randomlist.py."""
parser.addoption("--start_row", action="store", default=0)
parser.addoption("--num_rows", action="store", default=5)
parser.addoption("--num_rows", action="store", default=1)
parser.addoption("--master_list", action="store", default="ACSWFC3ListDefault50.csv")
parser.addoption("--svm_list", action="store", default="svm_input.lst")
183 changes: 0 additions & 183 deletions tests/hap/template_svm_demo.py

This file was deleted.

8 changes: 4 additions & 4 deletions tests/hap/test_run_svmpoller.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

from astropy.io import ascii
from drizzlepac import runsinglehap
from astropy.table import Table
from drizzlepac.haputils import astroquery_utils as aqutils


Expand All @@ -33,9 +32,10 @@ def pytest_generate_tests(metafunc):
# Copy the file
shutil.copy2(default_file, os.getcwd())

# Read the svm_list to get the poller filenames
table = Table.read(svm_list, format="ascii.fast_no_header")
poller_file_list = table["col1"].tolist()
# Read the svm_list to get the poller filenames - the list is typically
# not very long, so it should be fine to read the entire file
with open(svm_list) as file:
poller_file_list = [line.rstrip() for line in file]

print("Input file: {}".format(svm_list))
print("List of poller files: {}".format(poller_file_list))
Expand Down

0 comments on commit a5cb275

Please sign in to comment.