Browse Source

fix pytest conf

Guénaël Muller 7 years ago
parent
commit
e0c1d5238f

+ 2 - 1
pytest.ini View File

@@ -1,3 +1,4 @@
1 1
 [pytest]
2
+minversion = 2.8
2 3
 testpaths = tracim
3
-python_files = *.py
4
+addopts = -s -v

+ 2 - 2
tracim/tests/library/test_content_api.py View File

@@ -28,7 +28,7 @@ from tracim.models.data import Workspace
28 28
 from tracim.models.data import Content
29 29
 from tracim.models.data import ContentType
30 30
 from tracim.models.data import UserRoleInWorkspace
31
-from tracim.fixtures.users_and_groups import Test as TestFixture
31
+from tracim.fixtures.users_and_groups import Test as FixtureTest
32 32
 from tracim.tests import DefaultTest
33 33
 
34 34
 
@@ -1956,7 +1956,7 @@ class TestContentApi(DefaultTest):
1956 1956
 
1957 1957
 
1958 1958
 class TestContentApiSecurity(DefaultTest):
1959
-    fixtures = [TestFixture, ]
1959
+    fixtures = [FixtureTest, ]
1960 1960
 
1961 1961
     def test_unit__cant_get_non_access_content__ok__nominal_case(self):
1962 1962
         admin = self.session.query(User)\

+ 0 - 0
tracim/tests/views/__init__.py View File


tracim/tests/example_test.py → tracim/tests/views/test_example.py View File