Browse Source

doc+renaming

Guénaël Muller 6 years ago
parent
commit
1736af982a
2 changed files with 9 additions and 9 deletions
  1. 7 7
      tracim/fixtures/users_and_groups.py
  2. 2 2
      tracim/models/context_models.py

+ 7 - 7
tracim/fixtures/users_and_groups.py View File

@@ -62,11 +62,11 @@ class Test(Fixture):
62 62
         self._session.add(bob)
63 63
         g2.users.append(bob)
64 64
 
65
-        g2 = self._session.query(models.Group).\
65
+        g1 = self._session.query(models.Group).\
66 66
             filter(models.Group.group_name == 'users').one()
67
-        lawrence = models.User()
68
-        lawrence.display_name = 'John Reader'
69
-        lawrence.email = 'john-the-reader@reader.local'
70
-        lawrence.password = 'read'
71
-        self._session.add(lawrence)
72
-        g2.users.append(lawrence)
67
+        reader = models.User()
68
+        reader.display_name = 'John Reader'
69
+        reader.email = 'john-the-reader@reader.local'
70
+        reader.password = 'read'
71
+        self._session.add(reader)
72
+        g1.users.append(reader)

+ 2 - 2
tracim/models/context_models.py View File

@@ -107,7 +107,7 @@ class SetContentStatus(object):
107 107
 
108 108
 class HTMLDocumentUpdate(object):
109 109
     """
110
-    Comment creation model
110
+    Html Document update model
111 111
     """
112 112
     def __init__(
113 113
             self,
@@ -120,7 +120,7 @@ class HTMLDocumentUpdate(object):
120 120
 
121 121
 class ThreadUpdate(object):
122 122
     """
123
-    Comment creation model
123
+    Thread update model
124 124
     """
125 125
     def __init__(
126 126
             self,