diff --git a/README.md b/README.md index 5d77a98..42638fd 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,7 @@ User: ## Current development - Testing - Documentation +- Add github actions, which is python-app.yml to execute pytest ## Future development: - Improve the web page design diff --git a/tests/test_admin.py b/tests/test_admin.py index a58e4d4..76d2ecf 100644 --- a/tests/test_admin.py +++ b/tests/test_admin.py @@ -27,7 +27,7 @@ def test_change_user_role(super_admin_client): assert response.status_code == 302 # Verify the role has been changed - user = User.query.get(user.id) + user = db.session.get(User, user.id) assert user.role == 'admin'