Skip to content
Snippets Groups Projects
Verified Commit 4ab9be51 authored by Martin Weise's avatar Martin Weise
Browse files

One more try

parent 1dd4ebae
No related branches found
No related tags found
6 merge requests!345Updated docs and endpoints:,!341Fixed mapping problem where UK and FK share columns they are inserted,!339Fixed mapping problem where UK and FK share columns they are inserted,!338Fixed mapping problem where UK and FK share columns they are inserted,!334Fixed mapping problem where UK and FK share columns they are inserted,!333Fixed mapping problem where UK and FK share columns they are inserted
import logging
import pytest
from app import app
from flask import current_app
import os
from testcontainers.opensearch import OpenSearchContainer
......@@ -19,9 +18,10 @@ def session(request):
logging.debug("[fixture] starting opensearch container")
container.start()
with app.app_context():
current_app.config['OPENSEARCH_HOST'] = container.get_container_host_ip()
current_app.config['OPENSEARCH_PORT'] = container.get_exposed_port(9200)
os.environ['OPENSEARCH_HOST'] = container.get_container_host_ip()
os.environ['OPENSEARCH_PORT'] = container.get_exposed_port(9200)
os.environ['OPENSEARCH_USERNAME'] = 'admin'
os.environ['OPENSEARCH_PASSWORD'] = 'admin'
# destructor
def stop_opensearch():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment