mirror of
https://github.com/django-components/django-components.git
synced 2025-09-24 22:52:28 +00:00
refactor: replace isort, black and flake8 with ruff (#1346)
Some checks are pending
Docs - build & deploy / docs (push) Waiting to run
Run tests / build (ubuntu-latest, 3.10) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.11) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.12) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.13) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.8) (push) Waiting to run
Run tests / test_sampleproject (3.13) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.9) (push) Waiting to run
Run tests / build (windows-latest, 3.10) (push) Waiting to run
Run tests / build (windows-latest, 3.11) (push) Waiting to run
Run tests / build (windows-latest, 3.12) (push) Waiting to run
Run tests / build (windows-latest, 3.13) (push) Waiting to run
Run tests / build (windows-latest, 3.8) (push) Waiting to run
Run tests / build (windows-latest, 3.9) (push) Waiting to run
Run tests / test_docs (3.13) (push) Waiting to run
Some checks are pending
Docs - build & deploy / docs (push) Waiting to run
Run tests / build (ubuntu-latest, 3.10) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.11) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.12) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.13) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.8) (push) Waiting to run
Run tests / test_sampleproject (3.13) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.9) (push) Waiting to run
Run tests / build (windows-latest, 3.10) (push) Waiting to run
Run tests / build (windows-latest, 3.11) (push) Waiting to run
Run tests / build (windows-latest, 3.12) (push) Waiting to run
Run tests / build (windows-latest, 3.13) (push) Waiting to run
Run tests / build (windows-latest, 3.8) (push) Waiting to run
Run tests / build (windows-latest, 3.9) (push) Waiting to run
Run tests / test_docs (3.13) (push) Waiting to run
This commit is contained in:
parent
5279fd372a
commit
f100cc1836
128 changed files with 3076 additions and 2599 deletions
|
@ -5,8 +5,8 @@ import pytest
|
|||
from django.test import override_settings
|
||||
|
||||
from django_components.app_settings import ComponentsSettings, app_settings
|
||||
|
||||
from django_components.testing import djc_test
|
||||
|
||||
from .testutils import setup_test_config
|
||||
|
||||
setup_test_config(components={"autodiscover": False})
|
||||
|
@ -39,7 +39,7 @@ class TestSettings:
|
|||
},
|
||||
)
|
||||
def test_works_when_base_dir_is_string(self):
|
||||
assert app_settings.DIRS == [Path("base_dir/components")]
|
||||
assert [Path("base_dir/components")] == app_settings.DIRS
|
||||
|
||||
@djc_test(
|
||||
django_settings={
|
||||
|
@ -47,7 +47,7 @@ class TestSettings:
|
|||
},
|
||||
)
|
||||
def test_works_when_base_dir_is_path(self):
|
||||
assert app_settings.DIRS == [Path("base_dir/components")]
|
||||
assert [Path("base_dir/components")] == app_settings.DIRS
|
||||
|
||||
@djc_test(
|
||||
components_settings={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue