-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed variables in the integration tests
- Loading branch information
Showing
7 changed files
with
65 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import pytest | ||
from pytest_lazyfixture import lazy_fixture | ||
|
||
from pytest_celery import CELERY_BACKEND | ||
from pytest_celery import CELERY_BACKEND_CLUSTER | ||
from pytest_celery import CeleryBackendCluster | ||
from pytest_celery import CeleryTestBackend | ||
from tests.defaults import CELERY_BACKEND | ||
from tests.defaults import CELERY_BACKEND_CLUSTER | ||
|
||
|
||
@pytest.mark.parametrize("node", [lazy_fixture(CELERY_BACKEND)]) | ||
@pytest.mark.parametrize("backend", [lazy_fixture(CELERY_BACKEND)]) | ||
class test_celey_test_backend: | ||
def test_app(self, node: CeleryTestBackend): | ||
assert node.app is None | ||
def test_app(self, backend: CeleryTestBackend): | ||
assert backend.app is None | ||
|
||
|
||
@pytest.mark.parametrize("cluster", [lazy_fixture(CELERY_BACKEND_CLUSTER)]) | ||
class test_celery_backend_cluster: | ||
def test_app(self, cluster: CeleryBackendCluster): | ||
node: CeleryTestBackend | ||
for node in cluster: | ||
assert node.app is None | ||
backend: CeleryTestBackend | ||
for backend in cluster: | ||
assert backend.app is None |
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,21 +1,21 @@ | ||
import pytest | ||
from pytest_lazyfixture import lazy_fixture | ||
|
||
from pytest_celery import CELERY_BROKER | ||
from pytest_celery import CELERY_BROKER_CLUSTER | ||
from pytest_celery import CeleryBrokerCluster | ||
from pytest_celery import CeleryTestBroker | ||
from tests.defaults import CELERY_BROKER | ||
from tests.defaults import CELERY_BROKER_CLUSTER | ||
|
||
|
||
@pytest.mark.parametrize("node", [lazy_fixture(CELERY_BROKER)]) | ||
@pytest.mark.parametrize("broker", [lazy_fixture(CELERY_BROKER)]) | ||
class test_celery_test_broker: | ||
def test_app(self, node: CeleryTestBroker): | ||
assert node.app is None | ||
def test_app(self, broker: CeleryTestBroker): | ||
assert broker.app is None | ||
|
||
|
||
@pytest.mark.parametrize("cluster", [lazy_fixture(CELERY_BROKER_CLUSTER)]) | ||
class test_celery_broker_cluster: | ||
def test_app(self, cluster: CeleryBrokerCluster): | ||
node: CeleryTestBroker | ||
for node in cluster: | ||
assert node.app is None | ||
broker: CeleryTestBroker | ||
for broker in cluster: | ||
assert broker.app is None |
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