generated from mochi-hpc/margo-microservice-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
started adding unit tests for python module
- Loading branch information
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,17 @@ | ||
import unittest | ||
import mochi.flock.client as mfc | ||
from pymargo.core import Engine | ||
|
||
class TestClient(unittest.TestCase): | ||
|
||
def test_init_client_from_address(self): | ||
client = mfc.Client("na+sm") | ||
|
||
def test_init_client_from_engine(self): | ||
with Engine("na+sm") as engine: | ||
client = mfc.Client(engine) | ||
del client | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ spack: | |
- mpich | ||
- py-pybind11 | ||
- py-mochi-margo | ||
- py-coverage | ||
concretizer: | ||
unify: true | ||
reuse: true | ||
|