Skip to content

Commit

Permalink
Merge pull request #2022 from PyCQA/ci/fix-integration-tests
Browse files Browse the repository at this point in the history
Fix integration tests
  • Loading branch information
staticdev authored Dec 11, 2022
2 parents f5ba583 + 40b7c30 commit cfec337
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions tests/integration/test_projects_using_isort.py
Original file line number Diff line number Diff line change
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

0 comments on commit cfec337

Please sign in to comment.