Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
samscott89 committed Jun 11, 2024
1 parent 670f36c commit 12e2738
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import sqlalchemy
from sqlalchemy import inspect
from sqlalchemy.orm.util import AliasedClass, AliasedInsp

from .compat import USING_SQLAlchemy_v1_3, USING_SQLAlchemy_v2_0


Expand Down
4 changes: 2 additions & 2 deletions languages/python/sqlalchemy-oso/tests/models.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from sqlalchemy_oso.compat import USING_SQLAlchemy_v1_3, USING_SQLAlchemy_v2_0

from sqlalchemy import Boolean, Column, Enum, ForeignKey, Integer, String
from sqlalchemy.orm import relationship

from sqlalchemy_oso.compat import USING_SQLAlchemy_v1_3, USING_SQLAlchemy_v2_0

if USING_SQLAlchemy_v1_3:
from sqlalchemy.ext.declarative import declarative_base
else:
Expand Down
3 changes: 1 addition & 2 deletions languages/python/sqlalchemy-oso/tests/test_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from sqlalchemy import Column, Integer
from sqlalchemy.orm import Session

from sqlalchemy_oso.compat import USING_SQLAlchemy_v2_0
from sqlalchemy_oso.flask import AuthorizedSQLAlchemy
from sqlalchemy_oso.session import Permissions
from sqlalchemy_oso.compat import USING_SQLAlchemy_v2_0

from .models import ModelBase, Post

Expand Down Expand Up @@ -72,7 +72,6 @@ def test_authorized_sqlalchemy(ctx, oso, sqlalchemy, post_fixtures):
assert sqlalchemy.session.query(Post).count() == 1



@pytest.mark.skipif(
USING_SQLAlchemy_v2_0, reason="flask sqlalchemy does not support 2.0"
)
Expand Down

0 comments on commit 12e2738

Please sign in to comment.