Refactor OpcRepository and update tests for async handling - Removed the shutdown method from OpcRepository and adjusted the disconnect logic. - Updated tests in test_activities.py and test_opc.py to support async shutdown functionality. - Enhanced test cases in test_opc_repository.py to ensure proper async behavior and error handling in OpcRepository methods.
11 lines
179 B
Bash
Executable File
11 lines
179 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Exit on any error
|
|
set -e
|
|
|
|
echo "Activating virtual environment..."
|
|
source ./venv/bin/activate
|
|
|
|
pytest --cov=laborious --cov-report=html
|
|
|
|
xdg-open htmlcov/index.html |