Skip to content

Commit

Permalink
adjust testing
Browse files Browse the repository at this point in the history
  • Loading branch information
CheeseCake87 committed Sep 19, 2024
1 parent 87a5b82 commit a4c76ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_app/models/example_table.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from flask_imp.utilities import class_field
from sqlalchemy import ForeignKey

from ..extensions import db
Expand All @@ -10,7 +9,7 @@ def example_function():

class ExampleTable(db.Model):
example_id = db.Column(db.Integer, primary_key=True)
user_id = db.Column(db.Integer, ForeignKey(class_field("ExampleUser", "user_id")))
user_id = db.Column(db.Integer, ForeignKey("example_user.user_id"))
thing = db.Column(db.String(256), nullable=False)

@classmethod
Expand All @@ -36,5 +35,5 @@ def add(cls, **kwargs):

class ExampleTableOne(db.Model):
example_id = db.Column(db.Integer, primary_key=True)
user_id = db.Column(db.Integer, ForeignKey(class_field("ExampleUser", "user_id")))
user_id = db.Column(db.Integer, ForeignKey("example_user.user_id"))
thing = db.Column(db.String(256), nullable=False)

0 comments on commit a4c76ab

Please sign in to comment.