Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 685883d6 authored by Dorian Turba's avatar Dorian Turba
Browse files

add raises in async fsm

parent 04483a07
No related branches found
No related tags found
No related merge requests found
Pipeline #24169 failed
...@@ -70,6 +70,7 @@ async def async_fsm( ...@@ -70,6 +70,7 @@ async def async_fsm(
:param symbol_name: name of the original session_maker symbol :param symbol_name: name of the original session_maker symbol
:param create_engine_kwargs: keyword arguments to pass to sqlalchemy.create_engine :param create_engine_kwargs: keyword arguments to pass to sqlalchemy.create_engine
:return: a context manager that can be used as a session_maker :return: a context manager that can be used as a session_maker
:raises NotImplementedError: if the db_url starts with "sqlite"
""" """
if create_engine_kwargs is None: if create_engine_kwargs is None:
create_engine_kwargs = {} create_engine_kwargs = {}
......
FROM python:3
LABEL authors="dturba"
ENTRYPOINT ["top", "-b"]
# install postgres
RUN apt-get update && apt-get install -y postgresql postgresql-contrib
# create user and database
RUN service postgresql start &&\
su - postgres -c "psql -c \"CREATE USER test WITH PASSWORD 'test';\"" &&\
su - postgres -c "psql -c \"CREATE DATABASE test OWNER test;\"" &&\
su - postgres -c "psql -c \"GRANT ALL PRIVILEGES ON DATABASE test TO test;\""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment