mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-11-01 16:37:29 +03:00 
			
		
		
		
	remove pytest-mock
This commit is contained in:
		
							parent
							
								
									d90d65cafe
								
							
						
					
					
						commit
						82136f1c07
					
				|  | @ -5,8 +5,8 @@ from ..deprecated import deprecated as deprecated_decorator | ||||||
| from ..deprecated import warn_deprecation | from ..deprecated import warn_deprecation | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def test_warn_deprecation(mocker): | def test_warn_deprecation(monkeypatch): | ||||||
|     mocker.patch.object(deprecated.warnings, "warn") |     monkeypatch.setattr(deprecated.warnings, "warn")  | ||||||
| 
 | 
 | ||||||
|     warn_deprecation("OH!") |     warn_deprecation("OH!") | ||||||
|     deprecated.warnings.warn.assert_called_with( |     deprecated.warnings.warn.assert_called_with( | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user