Skip to content
Myr

Split up a test into two

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 1d6f86b · Browse files · 1 file+9 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−7 removed

  • tests:+9 added−7 removed

1 file+9 added−7 removed

modified:tests/flask_tests.py+9 added-7 removed
1006 unmodified lines
100710081009class InstanceTestCase(unittest.TestCase):10101011 def test_uninstalled_module_paths(self):1011 def test_explicit_instance_paths(self):1012 here = os.path.abspath(os.path.dirname(__file__))1013 app = flask.Flask(__name__)1014 self.assertEqual(app.instance_path, os.path.join(here, 'instance'))10151016 app = flask.Flask(__name__, instance_path=here)1017 self.assertEqual(app.instance_path, here)10181013 try:1014 flask.Flask(__name__, instance_path='instance')1015 except ValueError, e:1016 self.assert_('must be absolute' in str(e))1017 else:1018 self.fail('Expected value error')10191020 app = flask.Flask(__name__, instance_path=here)1021 self.assertEqual(app.instance_path, here)10221023 def test_uninstalled_module_paths(self):1024 here = os.path.abspath(os.path.dirname(__file__))1025 app = flask.Flask(__name__)1026 self.assertEqual(app.instance_path, os.path.join(here, 'instance'))10271028 def test_uninstalled_package_paths(self):1029 from blueprintapp import app1030 here = os.path.abspath(os.path.dirname(__file__))1031 self.assertEqual(app.instance_path, os.path.join(here, 'instance'))
1170 unmodified lines