File tree 2 files changed +2
-21
lines changed
2 files changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -143,20 +143,3 @@ def create_app_file(code, filename):
143
143
)
144
144
145
145
return testdir
146
-
147
-
148
- @pytest .fixture
149
- def django_testdir_initial (django_testdir ):
150
- """A django_testdir fixture which provides initial_data."""
151
- django_testdir .project_root .join ("tpkg/app/migrations" ).remove ()
152
- django_testdir .makefile (
153
- ".json" ,
154
- initial_data = """
155
- [{
156
- "pk": 1,
157
- "model": "app.item",
158
- "fields": { "name": "mark_initial_data" }
159
- }]""" ,
160
- )
161
-
162
- return django_testdir
Original file line number Diff line number Diff line change 5
5
6
6
@pytest .mark .urls ("pytest_django_test.urls_overridden" )
7
7
def test_urls ():
8
- try :
9
- from django .urls import is_valid_path
10
- except ImportError :
11
- from django .core .urlresolvers import is_valid_path
8
+ from django .urls import is_valid_path
9
+
12
10
assert settings .ROOT_URLCONF == "pytest_django_test.urls_overridden"
13
11
assert is_valid_path ("/overridden_url/" )
14
12
You can’t perform that action at this time.
0 commit comments