File tree Expand file tree Collapse file tree 7 files changed +8
-0
lines changed 
cookiecutter/{{cookiecutter.github_repo_name}} 
tests_golden/integration/test_cookiecutter_generation 
actor/frequenz-actor-test 
model/frequenz-model-test Expand file tree Collapse file tree 7 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 2222*  API projects don't include the ` google-common-protos `  dependency by default.
2323*  API projects updated the ` grpcio `  dependency to ` 1.66.1 ` .
2424*  API projects updated the ` frequenz-api-common `  dependency to ` 0.6 ` .
25+ *  Added a new default option ` asyncio_default_fixture_loop_scope = "function" `  for ` pytest-asyncio `  as not providing a value is deprecated.
2526
2627## Bug Fixes  
2728
Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ disable = [
197197{%- if cookiecutter.type != "api" %} 
198198testpaths  = [" tests"  , " src"  ]
199199asyncio_mode  = " auto" 
200+ asyncio_default_fixture_loop_scope  = " function" 
200201required_plugins  = [" pytest-asyncio"  , " pytest-mock"  ]
201202{%- else %} 
202203testpaths  = [" pytests"  ]
Original file line number Diff line number Diff line change @@ -196,6 +196,8 @@ ignore_missing_imports = true
196196
197197[tool .pytest .ini_options ]
198198testpaths  = [" src"  , " tests"  ]
199+ asyncio_mode  = " auto" 
200+ asyncio_default_fixture_loop_scope  = " function" 
199201markers  = [
200202  " integration: integration tests (deselect with '-m \" not integration\" ')"  ,
201203  " cookiecutter: integration tests (deselect with '-m \" not cookiecutter\" ')"  ,
Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ disable = [
155155[tool .pytest .ini_options ]
156156testpaths  = [" tests"  , " src"  ]
157157asyncio_mode  = " auto" 
158+ asyncio_default_fixture_loop_scope  = " function" 
158159required_plugins  = [" pytest-asyncio"  , " pytest-mock"  ]
159160
160161[tool .mypy ]
Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ disable = [
154154[tool .pytest .ini_options ]
155155testpaths  = [" tests"  , " src"  ]
156156asyncio_mode  = " auto" 
157+ asyncio_default_fixture_loop_scope  = " function" 
157158required_plugins  = [" pytest-asyncio"  , " pytest-mock"  ]
158159
159160[tool .mypy ]
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ disable = [
151151[tool .pytest .ini_options ]
152152testpaths  = [" tests"  , " src"  ]
153153asyncio_mode  = " auto" 
154+ asyncio_default_fixture_loop_scope  = " function" 
154155required_plugins  = [" pytest-asyncio"  , " pytest-mock"  ]
155156
156157[tool .mypy ]
Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ disable = [
155155[tool .pytest .ini_options ]
156156testpaths  = [" tests"  , " src"  ]
157157asyncio_mode  = " auto" 
158+ asyncio_default_fixture_loop_scope  = " function" 
158159required_plugins  = [" pytest-asyncio"  , " pytest-mock"  ]
159160
160161[tool .mypy ]
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments