Skip to content

Commit

Permalink
Update Path for test_guess_the_number_game.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Aseel-AbuKmail authored Jan 19, 2025
1 parent 6654a81 commit 54f038b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions solutions/tests/test_guess_the_number_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@
Created on 11-01-25
@author: Ameen Agha
"""

import sys
import os
import unittest
from Guess_The_Number_Game import generate_random_number, guess_the_number


# Add the parent directory to the system path
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))

# Now import the function
from solutions.guess_the_number_game import generate_random_number, guess_the_number


class TestGuessTheNumber(unittest.TestCase):
"""
Expand Down Expand Up @@ -50,5 +58,6 @@ def test_guess_invalid_inputs(self):
with self.assertRaises(AssertionError):
guess_the_number(10, "five")


if __name__ == "__main__":
unittest.main()

0 comments on commit 54f038b

Please sign in to comment.