Skip to content

Commit

Permalink
Fixes #9, path changes for test
Browse files Browse the repository at this point in the history
  • Loading branch information
JolanThomassin committed Feb 8, 2024
1 parent 9215998 commit 4c02761
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test_db_generate_qna.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import unittest
import json
import os
import sys
from unittest.mock import patch

from bin.generate_qna import generate_question

# Add the project root directory to sys.path
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))

# Assuming the test script is located in the same directory as the project root
# This adds the current directory to the path
sys.path.append("..")
from bin.generate_qna import generate_question

class TestScript(unittest.TestCase):
def setUp(self):
Expand Down

0 comments on commit 4c02761

Please sign in to comment.