-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix loading global cfgs + add tests * Add docs about global config * Update docs/source/basics.md Co-Authored-By: michaelboulton <michaelboulton@users.noreply.github.com> * Update tavern/core.py Co-Authored-By: michaelboulton <michaelboulton@users.noreply.github.com> * Split loading config into separate helper * formatting
- Loading branch information
1 parent
2cc9cfd
commit d013d20
Showing
4 changed files
with
64 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from tavern.core import run | ||
|
||
|
||
class TestBasicRun: | ||
def test_run(self): | ||
run("") | ||
|
||
def test_run_with_empty_cfg(self): | ||
run("", {}) | ||
|
||
def test_run_with_cfg(self): | ||
run("", {"a": 2}) |