Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix integration tests #2022

Merged
merged 1 commit into from Dec 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 19 additions & 12 deletions tests/integration/test_projects_using_isort.py
Expand Up @@ -36,24 +36,15 @@ def test_plone(tmpdir):


def test_pandas(tmpdir):
# Need to limit extensions as isort has just made sorting pxd the default, and pandas
# will have not picked it up yet
# TODO: Remove below line as soon as these files are sorted on the mainline pandas project
git_clone("https://github.com/pandas-dev/pandas.git", tmpdir)
limit_extensions = ("--ext", "py", "--ext", "pyi", "--ext", "pyx")
run_isort((str(tmpdir / "pandas"), "--skip", "__init__.py", *limit_extensions))
run_isort((str(tmpdir / "pandas"), "--skip", "__init__.py"))


def test_fastapi(tmpdir):
git_clone("https://github.com/tiangolo/fastapi.git", tmpdir)
run_isort([str(tmpdir / "fastapi")])


def test_zulip(tmpdir):
git_clone("https://github.com/zulip/zulip.git", tmpdir)
run_isort((str(tmpdir), "--skip", "__init__.pyi"))


def test_habitat_lab(tmpdir):
git_clone("https://github.com/facebookresearch/habitat-lab.git", tmpdir)
run_isort([str(tmpdir)])
Expand Down Expand Up @@ -83,7 +74,7 @@ def test_websockets(tmpdir):

def test_airflow(tmpdir):
git_clone("https://github.com/apache/airflow.git", tmpdir)
run_isort([str(tmpdir), "--skip-glob", "*/_vendor/*", "--skip", "tests"])
run_isort([str(tmpdir), "--skip-glob", "*.pyi", "--skip", "tests"])


def test_typeshed(tmpdir):
Expand Down Expand Up @@ -157,7 +148,23 @@ def test_attrs(tmpdir):

def test_datadog_integrations_core(tmpdir):
git_clone("https://github.com/DataDog/integrations-core.git", tmpdir)
run_isort([str(tmpdir), "--skip", "docs"])
run_isort(
[
str(tmpdir),
"--skip",
"ddev",
"--skip",
"docs",
"--skip-glob",
".*",
"--skip-glob",
"*/datadog_checks/dev/tooling/signing.py",
"--skip-glob",
"*/datadog_checks/dev/tooling/templates/*",
"--skip-glob",
"*/datadog_checks/*/vendor/*",
]
)


def test_pyramid(tmpdir):
Expand Down