-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
chore: Remove populate and fix various dredd tests #6506
Conversation
Codecov Report
@@ Coverage Diff @@
## development #6506 +/- ##
===============================================
+ Coverage 64.53% 64.54% +0.01%
===============================================
Files 292 292
Lines 15140 15142 +2
===============================================
+ Hits 9771 9774 +3
+ Misses 5369 5368 -1
Continue to review full report at Codecov.
|
@@ -338,8 +339,7 @@ def event_post(transaction): | |||
:return: | |||
""" | |||
with stash['app'].app_context(): | |||
event = EventFactoryBasic() | |||
db.session.add(event) | |||
RoleFactory(name=OWNER) # TODO: Change to get_or_create in event after_created |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at least two spaces before inline comment
@@ -11,6 +11,7 @@ | |||
from flask_migrate import Migrate, stamp | |||
from flask import Flask | |||
from app.models import db | |||
from app.models.user import OWNER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
module level import not at top of file
@@ -8,10 +8,10 @@ | |||
# placed only below this | |||
sys.path.insert(1, path.abspath(path.join(__file__, "../.."))) | |||
|
|||
from flask_migrate import Migrate, stamp | |||
from flask_migrate import Migrate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
module level import not at top of file
@@ -14,3 +15,9 @@ def test_migrations(self): | |||
with app.test_request_context(): | |||
result = check_migrations().split(',') | |||
self.assertEqual(result[0], 'success') | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blank line contains whitespace
No description provided.