Skip to content

Commit

Permalink
Fix failing tests without flow file in scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmiller committed Nov 12, 2018
1 parent f9b0f2e commit c325ec5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions opal/core/scaffold.py
Expand Up @@ -245,8 +245,6 @@ def start_project(name, USERLAND_HERE):
css.mkdir()
nix.mv(app_dir/'static/js/app/routes.js',
app_dir/'static/js/{0}/routes.js'.format(name))
nix.mv(app_dir/'static/js/app/flow.js',
app_dir/'static/js/{0}/flow.js'.format(name))

templates = app_dir/'templates'/name
templates.mkdir()
Expand Down
5 changes: 0 additions & 5 deletions opal/tests/test_scaffold.py
Expand Up @@ -236,11 +236,6 @@ def test_has_js_routes(self, call_command, subpr):
routes = self.path/'testapp/testapp/static/js/testapp/routes.js'
self.assertTrue(routes.is_file)

def test_js_has_flow(self, call_command, subpr):
scaffold.start_project(self.args, self.path)
flow = self.path/'testapp/testapp/static/js/testapp/flow.js'
self.assertTrue(flow.is_file)

def test_has_named_templates_dir(self, call_command, subpr):
scaffold.start_project(self.args, self.path)
templates = self.path/'testapp/testapp/templates/testapp'
Expand Down

0 comments on commit c325ec5

Please sign in to comment.