-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOCS] Fix example/ docs and add tests/ docs
- Loading branch information
Showing
8 changed files
with
54 additions
and
14 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
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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Mock directory | ||
============== | ||
|
||
|
||
|
||
Content | ||
------- | ||
|
||
|
||
|
||
Reference | ||
--------- |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
### Requirements | ||
Requires the "NAI_USERNAME" and "NAI_PASSWORD" values provided via environment variables. | ||
They can be provided through a .env file at the root of the project. | ||
|
||
The "NAI_PROXY" environment variable is also supported to inject a proxy address. | ||
|
||
### Usage | ||
For running all the tests under the tests/api folder : | ||
``` | ||
poetry run nai-test-api | ||
``` | ||
|
||
For running a specific test files (using the [pytest name scheme](https://docs.pytest.org/en/7.3.x/how-to/usage.html#nodeids)) : | ||
``` | ||
poetry run nai-test-api <filename 1> ... <filename n> | ||
``` | ||
|
||
Remember to run `poetry install` before running the test, if not already done. |