wip
This commit is contained in:
parent
6af6d30d77
commit
3600c7e89c
|
|
@ -44,10 +44,7 @@ pytest:
|
|||
# Create a postgresql container
|
||||
- docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --publish 9542:5432 --name db postgres:13
|
||||
|
||||
- |
|
||||
poetry run pytest
|
||||
--cov odoo_openupgrade_wizard
|
||||
--verbose --verbose
|
||||
--exitfirst
|
||||
tests/cli_A_init_test.py
|
||||
tests/cli_B_01_get_code_test.py
|
||||
- poetry run pytest --cov odoo_openupgrade_wizard --verbose --verbose --exitfirst tests/cli_A_init_test.py tests/cli_B_01_get_code_test.py tests/cli_B_02_docker_build_test.py tests/cli_B_03_run_test.py
|
||||
|
||||
# tests/cli_B_04_execute_script_python_test.py
|
||||
# tests/cli_B_05_upgrade_test.py
|
||||
|
|
|
|||
|
|
@ -15,6 +15,10 @@ def get_postgres_container():
|
|||
return containers[0]
|
||||
|
||||
|
||||
def execute_sql_file(request):
|
||||
pass
|
||||
|
||||
|
||||
def execute_sql_request(request, database="postgres"):
|
||||
container = get_postgres_container()
|
||||
docker_command = (
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@ from pathlib import Path
|
|||
from . import cli_runner_invoke
|
||||
|
||||
|
||||
def test_cli_execute_script():
|
||||
# TODO: FIXME
|
||||
# This test works locally, but doesn't work on gitlabci
|
||||
|
||||
def test_cli_execute_script_python():
|
||||
output_folder_path = Path("./tests/output_B").absolute()
|
||||
|
||||
extra_script_path = Path(
|
||||
|
|
|
|||
|
|
@ -9,9 +9,6 @@ from . import cli_runner_invoke
|
|||
|
||||
|
||||
def test_cli_upgrade():
|
||||
# TODO: FIXME
|
||||
# This test works locally, but doesn't work on gitlabci
|
||||
|
||||
output_folder_path = Path("./tests/output_B").absolute()
|
||||
|
||||
db_name = "database_test_cli_upgrade"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user