Skip to content

Commit

Permalink
tests: no opendap or motu service
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudjester committed Apr 3, 2024
1 parent 65d342c commit a337ded
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions tests/test_request_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,22 @@ def test_subset_request_with_dataset_not_in_catalog(self):
output = subprocess.run(command, capture_output=True)
assert output.returncode == 1

# def test_subset_error_when_forced_service_does_not_exist(self):
# filepath = get_path_to_request_file(
# "test_subset_error_when_forced_service_does_not_exist"
# )

# command = build_command(filepath, "subset")

# output = subprocess.run(command, capture_output=True)
# assert output.returncode == 1
# assert (
# b"You forced selection of service: arco-time-series\n"
# in output.stdout
# )
# assert (
# b"Service not available: Available services for"
# b" dataset: ['motu', 'opendap']"
# ) in output.stdout
def test_subset_error_when_forced_service_does_not_exist(self):
filepath = get_path_to_request_file(
"test_subset_error_when_forced_service_does_not_exist"
)

command = build_command(filepath, "subset")

output = subprocess.run(command, capture_output=True)
assert output.returncode == 1
assert (
b"You forced selection of service: arco-time-series\n"
in output.stdout
)
assert (
b"Service not available: Available services for" b" dataset: []"
) in output.stdout

def test_get_download_s3_with_wildcard_filter_and_regex(self, tmp_path):
filepath = get_path_to_request_file(
Expand Down

0 comments on commit a337ded

Please sign in to comment.