mirror of
				https://github.com/onyx-and-iris/obsws-cli.git
				synced 2025-10-31 05:31:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			397 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			397 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """Unit tests for the item command in the OBS WebSocket CLI."""
 | |
| 
 | |
| from typer.testing import CliRunner
 | |
| 
 | |
| from obsws_cli.app import app
 | |
| 
 | |
| runner = CliRunner()
 | |
| 
 | |
| 
 | |
| def test_item_list():
 | |
|     """Test the item list command."""
 | |
|     result = runner.invoke(app, ['item', 'list', 'pytest'])
 | |
|     assert result.exit_code == 0
 | |
|     assert 'pytest_input' in result.stdout
 | |
|     assert 'pytest_input_2' in result.stdout
 |