-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds tests for FractalAsyncClient.upload_file
- Loading branch information
1 parent
de1a1f8
commit 4385f4e
Showing
5 changed files
with
84 additions
and
13 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 |
---|---|---|
@@ -1,7 +1,22 @@ | ||
import pytest | ||
from fractal.matrix.async_client import FractalAsyncClient | ||
|
||
|
||
def test_fractal_async_client(): | ||
test_object = FractalAsyncClient() | ||
print("work") | ||
return test_object | ||
|
||
|
||
@pytest.fixture() | ||
def mock_async_context_manager(): | ||
class AsyncContextManager: | ||
async def __aenter__(self): | ||
# Perform setup actions here | ||
yield "async_context_value" | ||
|
||
async def __aexit__(self, exc_type, exc, tb): | ||
# Perform cleanup actions here | ||
pass | ||
|
||
return AsyncContextManager |
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