Skip to content

Commit

Permalink
disable production tests due to flask-sqlalchemy
Browse files Browse the repository at this point in the history
  • Loading branch information
David Andersson committed Apr 4, 2021
1 parent 5ee72c4 commit 0af1e26
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v2.4.0] - 2021-04-04
## [v2.4.1] - 2021-04-04

### Added

Expand Down Expand Up @@ -509,7 +509,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[v2.1.0]: https://github.com/jdkandersson/OpenAlchemy/releases/2.1.0
[v2.2.0]: https://github.com/jdkandersson/OpenAlchemy/releases/2.2.0
[v2.3.0]: https://github.com/jdkandersson/OpenAlchemy/releases/2.3.0
[v2.4.0]: https://github.com/jdkandersson/OpenAlchemy/releases/2.4.0
[v2.4.1]: https://github.com/jdkandersson/OpenAlchemy/releases/2.4.1
[///]: # "Issue/PR links"
[#189]: https://github.com/jdkandersson/OpenAlchemy/issues/189
[#190]: https://github.com/jdkandersson/OpenAlchemy/issues/190
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
author = "David Andersson"

# The full version, including alpha/beta/rc tags
release = "2.4.0"
release = "2.4.1"


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "OpenAlchemy"
version = "2.4.0"
version = "2.4.1"
description = "Maps an OpenAPI schema to SQLAlchemy models."
authors = ["David Andersson <[email protected]>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion tests/production/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ verify_ssl = true
name = "open-alchemy-pypi"

[packages]
openalchemy = {version="2.4.0", index="open-alchemy-pypi"}
openalchemy = {version="2.4.1", index="open-alchemy-pypi"}
connexion = {extras = ["swagger-ui"], version = "2.7.0", index="pypi"}
Flask-SQLAlchemy = {version = "2.4.4", index="pypi"}

Expand Down
13 changes: 13 additions & 0 deletions tests/production/template_test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
from open_alchemy import models


# 20210404 Currently failing because pytest-flask-sqlalchemy has not been updated for
# SQLAlchemy 1.4
@pytest.mark.xfail
@pytest.mark.app
def test_post(client, db_session):
"""
Expand All @@ -34,6 +37,7 @@ def test_post(client, db_session):
assert db_employee.salary == employee["salary"]


@pytest.mark.xfail
@pytest.mark.app
def test_post_duplicate(client):
"""
Expand All @@ -57,6 +61,7 @@ def test_post_duplicate(client):
assert response.status_code == 400


@pytest.mark.xfail
@pytest.mark.app
def test_get(client, db_session):
"""
Expand All @@ -82,6 +87,7 @@ def test_get(client, db_session):
assert employee["salary"] == db_employee.salary


@pytest.mark.xfail
@pytest.mark.app
def test_get_id_miss(client, db_session):
"""
Expand All @@ -100,6 +106,7 @@ def test_get_id_miss(client, db_session):
assert response.status_code == 404


@pytest.mark.xfail
@pytest.mark.app
def test_get_id_hit(client, db_session):
"""
Expand All @@ -123,6 +130,7 @@ def test_get_id_hit(client, db_session):
assert employee["salary"] == db_employee.salary


@pytest.mark.xfail
@pytest.mark.app
def test_patch_id_miss(client, db_session):
"""
Expand All @@ -146,6 +154,7 @@ def test_patch_id_miss(client, db_session):
assert response.status_code == 404


@pytest.mark.xfail
@pytest.mark.app
def test_patch_id_hit(client, db_session):
"""
Expand Down Expand Up @@ -179,6 +188,7 @@ def test_patch_id_hit(client, db_session):
assert db_employee.salary == employee["salary"]


@pytest.mark.xfail
@pytest.mark.app
def test_delete_id_miss(client, db_session):
"""
Expand All @@ -197,6 +207,7 @@ def test_delete_id_miss(client, db_session):
assert response.status_code == 404


@pytest.mark.xfail
@pytest.mark.app
def test_delete_id_hit(client, db_session):
"""
Expand All @@ -217,6 +228,7 @@ def test_delete_id_hit(client, db_session):
assert len(db_employees) == 0


@pytest.mark.xfail
@pytest.mark.app
def test_models_autogen_init(db_session, employee_kwargs):
"""
Expand All @@ -235,6 +247,7 @@ def test_models_autogen_init(db_session, employee_kwargs):
assert getattr(queried_employee, key) == value


@pytest.mark.xfail
@pytest.mark.app
def test_models_autogen_from_dict(db_session, employee_kwargs):
"""
Expand Down

0 comments on commit 0af1e26

Please sign in to comment.