-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate mock cloud from iotile_analytics to python_iotile_cloud (#19)
* Add support for testing using a mock iotile cloud The mock cloud spins up a local http server and answers api requests in a compatible manner to the real iotile cloud. Two pytest fixtures are registered for use in any package that depends on python_iotile_cloud: - mock_cloud - mock_cloud_nossl In order to use the first mock_cloud that serves over SSL (with a self-signed certificate), you must also have pyOpenSSL installed. See: requirements-test.txt Closes #18 * Bump version to 0.7.4 for release and update changelog * Increase appveyor test speed. We already use tox to run tests against each python version, specifying a matrix of python versions just changes what version of python is used to invoke tox the first time, and for each python version specified it still ran against all specified versions in tox. * Fix copy-paste and update version to 0.8.0 * Add ability to quickly mock device, project, streamer, org See the functions quick_add_{device, project, org, streamer} for descriptions of the functionality. There is also a new fixture mock_cloud_private[_nossl] that resets the cloud after each test. Closes #20 * Update fixtures for consistency * Fix spelling * Add support for listing device api with project filter * Add support for including fleets in the mock cloud * Remove debug print * Fix python 3 compatibility of mock_cloud
- Loading branch information
Showing
21 changed files
with
2,085 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
.env | ||
*.log | ||
*.json | ||
!/tests/**/*.json | ||
|
||
# Setup/Build | ||
build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.