-
-
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.
Removed pytest-lazy-fixture dependency (#200)
- Loading branch information
Showing
17 changed files
with
180 additions
and
202 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,27 +1,22 @@ | ||
from __future__ import annotations | ||
|
||
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 pytest_celery import CeleryTestCluster | ||
from pytest_celery import CeleryTestNode | ||
from tests.integration.api.test_base import BaseCluster | ||
from tests.integration.api.test_base import BaseNodes | ||
|
||
|
||
@pytest.mark.parametrize("backend", [lazy_fixture(CELERY_BACKEND)]) | ||
class test_celey_test_backend: | ||
def test_app(self, backend: CeleryTestBackend): | ||
assert backend.app is None | ||
class test_celey_test_backend(BaseNodes): | ||
@pytest.fixture | ||
def node(self, celery_backend: CeleryTestBackend) -> CeleryTestNode: | ||
return celery_backend | ||
|
||
|
||
@pytest.mark.parametrize("cluster", [lazy_fixture(CELERY_BACKEND_CLUSTER)]) | ||
class test_celery_backend_cluster: | ||
def test_app(self, cluster: CeleryBackendCluster): | ||
backend: CeleryTestBackend | ||
for backend in cluster: | ||
assert backend.app is None | ||
|
||
def test_config(self, cluster: CeleryBackendCluster): | ||
expected_keys = {"urls", "host_urls"} | ||
assert set(cluster.config().keys()) == expected_keys | ||
class test_celery_backend_cluster(BaseCluster): | ||
@pytest.fixture | ||
def cluster(self, celery_backend_cluster: CeleryBackendCluster) -> CeleryTestCluster: | ||
return celery_backend_cluster |
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,27 +1,22 @@ | ||
from __future__ import annotations | ||
|
||
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 pytest_celery import CeleryTestCluster | ||
from pytest_celery import CeleryTestNode | ||
from tests.integration.api.test_base import BaseCluster | ||
from tests.integration.api.test_base import BaseNodes | ||
|
||
|
||
@pytest.mark.parametrize("broker", [lazy_fixture(CELERY_BROKER)]) | ||
class test_celery_test_broker: | ||
def test_app(self, broker: CeleryTestBroker): | ||
assert broker.app is None | ||
class test_celery_test_broker(BaseNodes): | ||
@pytest.fixture | ||
def node(self, celery_broker: CeleryTestBroker) -> CeleryTestNode: | ||
return celery_broker | ||
|
||
|
||
@pytest.mark.parametrize("cluster", [lazy_fixture(CELERY_BROKER_CLUSTER)]) | ||
class test_celery_broker_cluster: | ||
def test_app(self, cluster: CeleryBrokerCluster): | ||
broker: CeleryTestBroker | ||
for broker in cluster: | ||
assert broker.app is None | ||
|
||
def test_config(self, cluster: CeleryBrokerCluster): | ||
expected_keys = {"urls", "host_urls"} | ||
assert set(cluster.config().keys()) == expected_keys | ||
class test_celery_broker_cluster(BaseCluster): | ||
@pytest.fixture | ||
def cluster(self, celery_broker_cluster: CeleryBrokerCluster) -> CeleryTestCluster: | ||
return celery_broker_cluster |
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
Oops, something went wrong.