Skip to content

Commit f271745

Browse files
committed
fix errors'
1 parent 2ec4b1a commit f271745

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

specs/mixins/x_test_pagination.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
with context('Client.previous'):
2727
with it('should create a new request with the page and call it'):
2828
self.response.result = {
29-
'meta': {'links': {'previous': 'http://f.co?page%5Boffset%5D=1'}}
29+
'meta': {'links': {'previous': 'https://f.co?page%5Boffset%5D=1'}}
3030
}
3131

3232
next_response = self.pagination.previous(self.response)
@@ -44,7 +44,7 @@
4444
with context('Client.next'):
4545
with it('should create a new request with the page and call it'):
4646
self.response.result = {
47-
'meta': {'links': {'next': 'http://f.co?page%5Boffset%5D=1'}}
47+
'meta': {'links': {'next': 'https://f.co?page%5Boffset%5D=1'}}
4848
}
4949

5050
next_response = self.pagination.next(self.response)
@@ -62,7 +62,7 @@
6262
with context('Client.first'):
6363
with it('should create a new request with the page and call it'):
6464
self.response.result = {
65-
'meta': {'links': {'first': 'http://f.co?page%5Boffset%5D=1'}}
65+
'meta': {'links': {'first': 'https://f.co?page%5Boffset%5D=1'}}
6666
}
6767

6868
next_response = self.pagination.first(self.response)
@@ -81,7 +81,7 @@
8181
with it('should create a new request with the page and call it'):
8282
self.response.request.params = {'page': {'offset': '0'}}
8383
self.response.result = {
84-
'meta': {'links': {'last': 'http://f.co?page%5Boffset%5D=1'}}
84+
'meta': {'links': {'last': 'https://f.co?page%5Boffset%5D=1'}}
8585
}
8686

8787
next_response = self.pagination.last(self.response)

tox.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ envlist = py38,python3.9,python3.10
44
[testenv]
55
commands =
66
flake8 amadeus specs setup.py
7-
# pytest specs/mixins/validator_spec.py --cov
8-
pytest specs/version_spec.py
7+
pytest specs/
8+
# pytest specs/ --cov
99

1010
deps =
1111
expects==0.9.0
@@ -16,6 +16,8 @@ deps =
1616
pytest==7.2.0
1717
mock==5.0.0
1818
pytest-cov==4.0.0
19+
pytest-html==3.2.0
20+
pytest-metadata==2.0.4
1921
usedevelop=True
2022

2123
[gh-actions]

0 commit comments

Comments
 (0)