diff --git a/scripts/build_image.bat b/scripts/build_image.bat index a48057f..41a22ee 100644 --- a/scripts/build_image.bat +++ b/scripts/build_image.bat @@ -13,11 +13,11 @@ if %errorlevel% neq 0 ( exit /b 1 ) -cd ../docker +cd %~dp0 echo Building docker image... -docker compose build cat-detection +docker-compose -f ../docker/docker-compose.yml build if %errorlevel% neq 0 ( - echo Building cdocker imagew failed. + echo Building docker image failed. exit /b 1 ) diff --git a/scripts/run_tests.bat b/scripts/run_tests.bat index b2f2fd7..7102e01 100644 --- a/scripts/run_tests.bat +++ b/scripts/run_tests.bat @@ -1,8 +1,6 @@ @echo off echo Running unit tests. -set PYTHONPATH=%CD%;%PYTHONPATH% - cd %~dp0 pytest ../tests diff --git a/scripts/start.bat b/scripts/start.bat index 9712cd6..208efad 100644 --- a/scripts/start.bat +++ b/scripts/start.bat @@ -1,6 +1,7 @@ @echo off chcp 65001 >nul +cd %~dp0 docker compose -f ../docker/docker-compose.yml up cat-detection -d if %errorlevel% neq 0 ( echo Starting docker container failed. diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29