-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix pyproject, get tox working, add first test
- Loading branch information
1 parent
c11da57
commit 287a53e
Showing
3 changed files
with
26 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import pytest | ||
from otf.api import Api | ||
|
||
|
||
@pytest.mark.asyncio | ||
async def test_api_raises_error_if_no_username_password(): | ||
with pytest.raises(TypeError): | ||
await Api.create() |
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,8 +1,10 @@ | ||
[tox] | ||
skipsdist=True | ||
envlist = py310, py311 | ||
|
||
[testenv] | ||
recreate = False | ||
deps = | ||
pytest | ||
.[dev] | ||
commands = | ||
pytest | ||
pytest |