Skip to content

Commit

Permalink
Add docstrings and pylint ignores in test_app
Browse files Browse the repository at this point in the history
Co-Authored by: yeej2 <yeej2@allegheny.edu>
  • Loading branch information
Michionlion committed Apr 27, 2019
1 parent e431533 commit ae88365
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,26 @@

@pytest.fixture()
def factory():
"""Create an app and its test client"""
actual_app = appfactory.create_app()

# pylint: disable=too-few-public-methods
class Group:
"""Group of created objects"""

app = actual_app
client = actual_app.test_client()

return Group


# pylint: disable=redefined-outer-name
def test_app_created(factory):
"""Start with a blank database"""
assert factory.app is not None


# pylint: disable=redefined-outer-name
def test_index(factory):
"""Test index page works -- NOT CORRECT"""
res = factory.client.get("/")
Expand Down

0 comments on commit ae88365

Please sign in to comment.