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 CI issues and Bump dev requirements #26

Merged
merged 1 commit into from
Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ wheel
# We need our back-ported fixes to Airflow for our tests to pass
# We need to specify the astro version here, otherwise it would install the one from pypi repo instead
--extra-index-url=https://pip.astronomer.io/simple/
--constraint=https://raw.githubusercontent.com/astronomer/ap-airflow/master/1.10.7/buster/include/pip-constraints.txt
astronomer-certified==1.10.7.*
--constraint=https://raw.githubusercontent.com/astronomer/ap-airflow/master/2.2.3/bullseye/build-time-pip-constraints.txt
astronomer-certified==2.2.3.*

-e .[test]

attrs<20.0
marshmallow-sqlalchemy==0.23.0
marshmallow<=2.21.0
marshmallow-sqlalchemy~=0.26.1
marshmallow~=3.14.0
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def app():
os.environ['AIRFLOW__CORE__SQL_ALCHEMY_CONN'] = 'sqlite:///testdb.sqlite'
os.environ['AIRFLOW__WEBSERVER__RBAC'] = 'True'
from airflow.utils.db import initdb
from airflow.www_rbac.app import create_app
from airflow.www.app import create_app

initdb(rbac=True)
app, _ = create_app(testing=True)
initdb()
app = create_app(testing=True)
app.test_client_class = FlaskLoginClient
return app

Expand Down
1 change: 1 addition & 0 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

def test_plugin_registered():
"""Verify that the plugin is registered"""
plugins_manager.ensure_plugins_loaded()
assert len(plugins_manager.plugins) == 1
assert plugins_manager.plugins[0].name == 'astronomer_version_check'
assert plugins_manager.plugins[0].flask_blueprints != []
Expand Down