Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TESTS] Adds pytest-randomly to shuffle tests #98

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [unreleased] - 2024-11-01
## [v0.3.12] - 2024-11-22
### Added
- Added pre-commit hooks and Github CI action for code formatting and linting.
- Added MyPy with strict settings to enforce type hints (and Github CI action).
- Added `pytest-randomly` to shuffle test order

## [v0.3.11] - 2024-11-01
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion learnosity_sdk/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = 'v0.3.11'
__version__ = 'v0.3.12'
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
'pytest >=4.6.6',
'pytest-cov >=2.8.1',
'pytest-subtests',
'pytest-randomly',
'responses >=0.8.1',
'types-requests',
'types-Jinja2',
Expand Down
5 changes: 3 additions & 2 deletions tests/integration/test_dataapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ def test_real_question_request(self) -> None:
"""Make a request against Data Api to ensure the SDK works"""
client = DataApi()

questions_request['limit'] = 3
res = client.request(self.__build_base_url() + questions_endpoint, security, consumer_secret, questions_request,
local_questions_request = questions_request.copy()
local_questions_request['limit'] = 3
res = client.request(self.__build_base_url() + questions_endpoint, security, consumer_secret, local_questions_request,
action)

returned_json = res.json()
Expand Down
Loading