Skip to content

Commit

Permalink
fix test_create
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Feb 27, 2024
1 parent 1e1810e commit d3dc514
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/supported_python_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ minor_version="$2"
if [[ ${major_version} == 0 && ${minor_version} == 0 ]]
then
py_versions='["3.8", "3.9", "3.10", "3.11", "3.12"]'
elif [[ ${major_version} == 1 && ${minor_version} < 4 ]]
elif [[ ${major_version} == 1 && ${minor_version} -le 3 ]]
then
py_versions='["3.8", "3.9", "3.10"]'
elif [[ ${major_version} == 1 && ${minor_version} > 3 && ${minor_version} < 7 ]]
elif [[ ${major_version} == 1 && ${minor_version} -ge 4 && ${minor_version} -le 6 ]]
then
py_versions='["3.8", "3.9", "3.10", "3.11"]'
else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
git+https://github.com/dbt-labs/dbt-core.git@main#egg=dbt-core&subdirectory=core --no-binary dbt-postgres
git+https://github.com/dbt-labs/dbt-core.git@main#egg=dbt-postgres&subdirectory=plugins/postgres
git+https://github.com/dbt-labs/dbt-postgres.git@main#egg=dbt-postgres
git+https://github.com/dbt-labs/dbt-bigquery.git@main#egg=dbt-bigquery
git+https://github.com/dbt-labs/dbt-snowflake.git@main#egg=dbt-snowflake
git+https://github.com/dbt-labs/dbt-redshift.git@main#egg=dbt-redshift
Expand Down
19 changes: 11 additions & 8 deletions test/integration/bundle/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@
def test_generate_bundle_creates_a_bundle_with_valid_version(
test_version
):
if sys.version_info >= (3, 11) and Version.coerce(test_version) < Version.coerce(
"1.5.0"
):
pytest.skip("Python 3.11+ requires at least version 1.5.0 of the bundle")
if sys.version_info == (3, 10) and Version.coerce(test_version) >= Version.coerce(
"1.5.0"
):
pytest.skip("We run test for Python 3.11 with version 1.5.0+ of the bundle")
if sys.version_info >= (3, 11) and Version.coerce(test_version) < Version.coerce("1.4.0"):
pytest.skip("Python 3.11+ requires at least version 1.4.0 of the bundle")
if sys.version_info < (3, 11) and Version.coerce(test_version) >= Version.coerce("1.4.0"):
pytest.skip("We run tests for Python 3.11 with version 1.4.0+ of the bundle")

if sys.version_info >= (3, 12) and Version.coerce(test_version) < Version.coerce("1.7.0"):
pytest.skip("Python 3.12+ requires at least version 1.7.0 of the bundle")
if sys.version_info < (3, 12) and Version.coerce(test_version) >= Version.coerce("1.7.0"):
pytest.skip("We run tests for Python 3.12 with version 1.7.0+ of the bundle")


created_assets = generate_bundle(Version.coerce(test_version))
for asset_name, asset_location in created_assets.items():
# check if the file exists
Expand Down

0 comments on commit d3dc514

Please sign in to comment.