File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 9191
9292USE_I18N  =  True 
9393
94- USE_L10N  =  True 
95- 
9694USE_TZ  =  True 
9795
9896
Original file line number Diff line number Diff line change 11from  django .contrib  import  admin 
2- from  django .urls  import  path    # type:ignore 
2+ from  django .urls  import  path 
33
44urlpatterns  =  [
55    path ("admin/" , admin .site .urls ),
Original file line number Diff line number Diff line change 1313# limitations under the License. 
1414
1515import  os 
16+ from  pathlib  import  Path 
1617import  sys 
1718
1819import  pytest 
@@ -438,6 +439,8 @@ def test_base_url(page):
438439
439440
440441def  test_django (testdir : pytest .Testdir ) ->  None :
442+     # Workaroud for https://github.com/pytest-dev/pytest/issues/10651 
443+     os .environ .setdefault ("PYTHONPATH" , str (Path (__file__ ).parent .parent ))
441444    testdir .makepyfile (
442445        """ 
443446    from django.test import TestCase 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments