-
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.
Merge pull request #28 from mdsol/develop
- Loading branch information
Showing
19 changed files
with
429 additions
and
342 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "tests/mauth-protocol-test-suite"] | ||
path = tests/mauth-protocol-test-suite | ||
url = https://github.com/mdsol/mauth-protocol-test-suite.git |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,16 +35,24 @@ To setup your environment: | |
pyenv local 3.5.8 3.6.10 3.7.7 3.8.2 pypy3.6-7.1.1 | ||
``` | ||
|
||
## Unit Tests | ||
|
||
1. Make any changes, update the tests and then run tests with `tox` | ||
1. Coverage report can be viewed using `open htmlcov/index.html` | ||
## Cloning the Repo | ||
|
||
This repo contains the submodule `mauth-protocol-test-suite` so requires a flag when initially cloning in order to clone and init submodules: | ||
```sh | ||
git clone --recurse-submodules [email protected]:mdsol/mauth-client-python.git | ||
``` | ||
|
||
## Running mauth-protocol-test-suite | ||
If you have already cloned before the submodule was introduced, then run: | ||
```sh | ||
cd tests/mauth-protocol-test-suite | ||
git submodule update --init | ||
``` | ||
|
||
To run the mauth-protocol-test-suite clone the latest test suite onto your machine and place it in the [`tests`](./tests) directory (or supply the ENV var `TEST_SUITE_RELATIVE_PATH` with the path to the test suite relative to the `tests` directory). Then run: | ||
to init the submodule. | ||
|
||
``` | ||
poetry run pytest -m protocol_suite | ||
``` | ||
|
||
## Unit Tests | ||
|
||
1. Make any changes, update the tests and then run tests with `tox` | ||
1. Coverage report can be viewed using `open htmlcov/index.html` |
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 |
---|---|---|
@@ -1 +1,8 @@ | ||
__version__ = "1.2.0" | ||
# Load the version from the project metatdata | ||
try: | ||
import importlib.metadata as importlib_metadata | ||
except ModuleNotFoundError: | ||
# needed for Python < 3.8 | ||
import importlib_metadata | ||
|
||
__version__ = importlib_metadata.version(__name__) |
Oops, something went wrong.