Skip to content

Commit

Permalink
Merge 13fb0ed into 1f9c708
Browse files Browse the repository at this point in the history
  • Loading branch information
tjacovich committed Feb 1, 2024
2 parents 1f9c708 + 13fb0ed commit b56e0c3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade wheel setuptools==57 pip
pip install nose
pip install -U -r requirements.txt
pip install -U -r dev-requirements.txt
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ local*
include/
lib/
.coverage
.venv
logs/
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ git+https://github.com/adsabs/ADSMicroserviceUtils.git@v1.1.9
git+https://github.com/adsabs/ADSParser.git@v1.0.3
future==0.18.2
webargs==5.5.3
Jinja2==2.11.3
markupsafe<=2.0.1
itsdangerous<=2.0.1
werkzeug<=2.0.3
4 changes: 2 additions & 2 deletions tugboat/tests/tests_unit/test_search_redirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,11 @@ def test_classic_parameters_entry_date(self):
self.assertEqual('q=' + urllib.parse.quote('entdate:["1990-01-02:00:00" TO "2011-01-01"]') +
'&sort=' + urllib.parse.quote('date desc, bibcode desc') + '&format=SHORT' + '/', search) # years, months, days

req.args = MultiDict([('start_entry_year', "25"), ('end_entry_year', "22")])
req.args = MultiDict([('start_entry_year', "26"), ('end_entry_year', "22")])
req.args.update(self.append_defaults())
view = ClassicSearchRedirectView()
search = view.translate(req)
self.assertEqual('q=' + urllib.parse.quote('entdate:["1925-01-02:00:00" TO "2023-01-01"]') +
self.assertEqual('q=' + urllib.parse.quote('entdate:["1926-01-02:00:00" TO "2023-01-01"]') +
'&sort=' + urllib.parse.quote('date desc, bibcode desc') + '&format=SHORT' + '/', search) # years, months, days

def test_classic_results_subset(self):
Expand Down

0 comments on commit b56e0c3

Please sign in to comment.