Skip to content

Commit

Permalink
fix database test
Browse files Browse the repository at this point in the history
  • Loading branch information
senko committed Dec 31, 2023
1 parent adc4529 commit 4dbabc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pilot/test_main_e2e.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import builtins
import pytest
from unittest.mock import patch
Expand All @@ -12,6 +13,8 @@

def test_init():
# When
os.environ['DB_NAME'] = ':memory:'

args = init()

# Then
Expand Down Expand Up @@ -58,4 +61,3 @@ def test_end_to_end(endpoint, model, monkeypatch):
# When
with patch('utils.questionary.questionary', mock_questionary):
project.start()

0 comments on commit 4dbabc9

Please sign in to comment.