Skip to content
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

Merged
merged 5 commits into from
Oct 5, 2019

Conversation

iamareebjamal
Copy link
Member

No description provided.

@auto-label auto-label bot added the chore label Oct 5, 2019
@codecov
Copy link

codecov bot commented Oct 5, 2019

Codecov Report

Merging #6506 into development will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@               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
Impacted Files Coverage Δ
tests/all/integration/setup_database.py 96.15% <ø> (-0.28%) ⬇️
tests/all/integration/test_migrations.py 100% <100%> (ø) ⬆️
app/settings/__init__.py 44.77% <0%> (-1.5%) ⬇️
app/api/helpers/files.py 65.38% <0%> (+1.28%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5a429f...ee007b2. Read the comment docs.

@@ -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

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

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

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')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blank line contains whitespace

@iamareebjamal iamareebjamal changed the title chore: Remove populate from tests chore: Remove populate and fix various dredd tests Oct 5, 2019
@fossasia fossasia deleted a comment Oct 5, 2019
@iamareebjamal iamareebjamal merged commit e35f8f1 into development Oct 5, 2019
@iamareebjamal iamareebjamal deleted the no-populate branch October 5, 2019 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants