Skip to content

Commit cf1aac7

Browse files
committed
update CHANGELOG.md and add in test
1 parent 95aaba4 commit cf1aac7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
## [Unreleased]
77
### Added
88
- Added error messages to inform user if .harmony file is formatted incorrectly or missing a key
9+
### Fixed
10+
- **PODAAC-6303 (issues/167)**
11+
- Fixed issue where -gr and -sd/-ed (temporal) cannot be used together as a query
912

1013
## [1.15.2]
1114
### Fixed

tests/test_downloader_regression.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,18 @@ def test_downloader_GRACE_with_SHA_512(tmpdir):
109109
modified_time_2 = os.path.getmtime(filename)
110110
print( modified_time_2 )
111111
assert modified_time_1 == modified_time_2
112+
113+
@pytest.mark.regression
114+
def test_downloader_temporal_and_granule_together():
115+
# Command: podaac-data-downloader -c TRPSDL2ALLCRSMGLOS -d data -p GES_DISC -sd 2020-01-01T00:00:00Z -ed 2020-01-02T23:59:59Z -gr *NH3*
116+
shutil.rmtree('./TMP', ignore_errors=True)
117+
args2 = create_downloader_args(
118+
'-c TRPSDL2ALLCRSMGLOS -d ./TMP -p GES_DISC -sd 2020-01-01T00:00:00Z -ed 2020-01-02T23:59:59Z -gr *NH3*'
119+
.split())
120+
pdd.run(args2)
121+
# So running the test in parallel, sometimes we get a 401 on the token...
122+
# Let's ensure we're only looking for data files here
123+
assert len([name for name in os.listdir('./TMP') if
124+
os.path.isfile('./TMP/' + name) and "citation.txt" not in name]) == 2
125+
shutil.rmtree('./TMP')
126+
assert True

0 commit comments

Comments
 (0)