From 54d3ef5825ff8ccb1b59206af124a649a847c6bc Mon Sep 17 00:00:00 2001 From: atmosmps Date: Mon, 29 Jun 2020 10:39:22 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Adicionando=20fun=C3=A7=C3=A3o=20para=20fec?= =?UTF-8?q?har=20sess=C3=B5es=20abertas=20com=20o=20Banco=20de=20Dados,=20?= =?UTF-8?q?caso=20existam.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/conftest.py b/tests/conftest.py index f615568..a147878 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -20,6 +20,7 @@ def app(): yield app with app.app_context(): + db.close_all_sessions() db.drop_all() except Exception as e: From 8e1c62b9a6899c81e439a22deceb43167a521f92 Mon Sep 17 00:00:00 2001 From: atmosmps Date: Tue, 30 Jun 2020 09:07:16 -0300 Subject: [PATCH 2/2] Fix command to generate docs. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 67361ec..53ebfc2 100644 --- a/Makefile +++ b/Makefile @@ -67,4 +67,4 @@ lint: ## Verifica qualidade da escrita de codigo flake8 ./app build-apidocs: ## Gera documentacao com base no arquivo das especificacoes do API Blueprint - docker run -it --rm -v $(pwd):/application -w /application markteam/docker-aglio:latest aglio -i ./application/app/docs/api-blueprint-sample.apib --theme-full-width --no-theme-condense -o ./application/app/templates/apidocs/index.html + docker run -it --rm -v $(pwd):/application -w /application markteam/docker-aglio:latest aglio -i ./docs/api-blueprint-sample.apib --theme-full-width --no-theme-condense -o ./app/templates/apidocs/index.html