Review error state - error in test script
This commit is contained in:
@@ -18,9 +18,8 @@ class Transaction(db.Model):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def create_transaction(cls, id, account_id, type, channel):
|
def create_transaction(cls, id, account_id, type, channel):
|
||||||
|
|
||||||
# not sure why we have tis test yet
|
if cls.query.filter_by(id=id).first():
|
||||||
# if cls.query.filter_by(id=id).first():
|
raise ValueError("Duplicate Transaction")
|
||||||
# raise ValueError("Duplicate Transaction")
|
|
||||||
|
|
||||||
transaction = cls(
|
transaction = cls(
|
||||||
id=id,
|
id=id,
|
||||||
|
|||||||
Reference in New Issue
Block a user