Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Rename script to manage in sub apps

  • Loading branch information...
commit 36f70e06cd2abb93f0b54f18da75d49721e16a08 1 parent 666f985
Kirill Klenov authored
0  base/auth/script.py → base/auth/manage.py
File renamed without changes
8 base/auth/tests.py
@@ -5,11 +5,11 @@
5 5 class AuthTest(FlaskTest):
6 6
7 7 def test_model_mixin(self):
8   - from base.auth.models import User
  8 + from .models import User
9 9 self.assertTrue(User.do_true())
10 10
11 11 def test_users(self):
12   - from base.auth.models import User
  12 + from .models import User
13 13
14 14 response = self.client.post('/users/login/', data=dict())
15 15 self.assertRedirects(response, '/')
@@ -41,8 +41,8 @@ def test_users(self):
41 41 self.assertEqual(user.email, 'test2@test.com')
42 42
43 43 def test_manager(self):
44   - from base.auth.models import Role, User
45   - from base.auth.script import create_role, create_user, add_role
  44 + from .models import Role, User
  45 + from .script import create_role, create_user, add_role
46 46
47 47 create_role('test')
48 48 role = Role.query.filter(Role.name == 'test').first()
0  base/auth/manager.py → base/auth/utils.py
File renamed without changes
2  base/auth/views.py
@@ -3,8 +3,8 @@
3 3
4 4 from ..ext import db
5 5 from .forms import RegisterForm, LoginForm
6   -from .manager import UserManager
7 6 from .models import User
  7 +from .utils import UserManager
8 8
9 9
10 10 users = UserManager(
2  manage.py
@@ -6,7 +6,7 @@
6 6
7 7
8 8 # Load app scripts
9   -loader.register(manager, submodule='script')
  9 +loader.register(manager, submodule='manage')
10 10
11 11
12 12 @manager.shell

0 comments on commit 36f70e0

Please sign in to comment.
Something went wrong with that request. Please try again.