-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
400 additions
and
353 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,19 @@ | ||
""" | ||
App Debugging | ||
""" | ||
|
||
import pytest | ||
|
||
from browsr.base import TextualAppContext | ||
from browsr.browsr import Browsr | ||
|
||
|
||
@pytest.mark.asyncio | ||
async def test_debug_app() -> None: | ||
""" | ||
Test the actual browsr app | ||
""" | ||
config = TextualAppContext(file_path="s3://", debug=True) | ||
app = Browsr(config_object=config) | ||
async with app.run_test() as pilot: | ||
_ = pilot.app |
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 @@ | ||
""" | ||
Test the actual browsr app | ||
""" | ||
|
||
import pytest | ||
|
||
from browsr.base import TextualAppContext | ||
from browsr.browsr import Browsr | ||
|
||
|
||
def test_bad_path() -> None: | ||
""" | ||
Test a bad path | ||
""" | ||
with pytest.raises(FileNotFoundError): | ||
_ = Browsr( | ||
config_object=TextualAppContext(file_path="bad_file_path.csv", debug=True) | ||
) |
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