-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dependencies: Update requirements for
kiwipy
and plumpy
The new version `kiwipy==0.8` and `plumpy==0.22` provide compatiblity with newer versions of `aio-pika==8.0` which comes with various connection stability improvements.
- Loading branch information
Showing
9 changed files
with
52 additions
and
29 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
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
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,24 @@ | ||
"""Tests for :mod:`aiida.manage.manager`.""" | ||
|
||
import pytest | ||
from aiida import engine, orm | ||
|
||
|
||
@engine.calcfunction | ||
def add_calcfunction(data): | ||
return orm.Int(data.value + 1) | ||
|
||
|
||
@pytest.mark.requires_rmq | ||
def test_disconnect(): | ||
"""Test the communicator disconnect.""" | ||
from aiida.manage import get_manager | ||
|
||
manager = get_manager() | ||
manager.get_communicator() | ||
manager.reset_profile() # This will return just fine | ||
|
||
result, node = add_calcfunction.run_get_node(1) | ||
assert node.is_finished_ok | ||
assert result == 2 | ||
manager.reset_profile() # This will now hang and timeout |