Skip to content

Commit

Permalink
tag tests that need internet so they can be skipped
Browse files Browse the repository at this point in the history
tag tests that need to download the FAB-Skeleton with 'needs_inet'. This will
allow them to easily be skipped when running in an environment that doesn't
have internet connectivity, such as the Debian build servers.
  • Loading branch information
jnahmias committed Jul 3, 2022
1 parent 54f8a7b commit c5e8759
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flask_appbuilder/tests/test_fab_cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import glob
import json
import logging
from nose.plugins.attrib import attr
import os
import tempfile
from unittest.mock import ANY, patch
Expand Down Expand Up @@ -36,6 +37,7 @@ def setUp(self):
def tearDown(self):
log.debug("TEAR DOWN")

@attr("needs_inet")
def test_create_app(self):
"""
Test create app, create-user
Expand Down Expand Up @@ -69,6 +71,7 @@ def test_create_app(self):

runner.invoke(reset_password, ["--username=bob", "--password=bar"])

@attr("needs_inet")
def test_list_views(self):
"""
CLI: Test list views
Expand Down

0 comments on commit c5e8759

Please sign in to comment.