Skip to content

Commit

Permalink
AndrewHUNGNguyen - Resolve Import Errors when Executing Unit Tests (#76)
Browse files Browse the repository at this point in the history
* Adding a gitignore to avoid adding pyc

* Separated string, statistics, and bitwise operations to separate files and created unit tests

* is_palindrome and string manipulation test method names modified

* is_palindrome and string manipulation test method names modified

* Adding changes to files in test folder to resolve import errors
  • Loading branch information
AndrewHUNGNguyen authored Oct 27, 2023
1 parent 7988d13 commit cd81724
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions easyPythonpi/test/__main__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import test_basics
import test_Bin2Hex
import test_FibRefactored
import test_graph
import test_search
import test.test_basics
import test.test_Bin2Hex
import test.test_FibRefactored
import test.test_graph
import test.test_search


def test_all():
Expand Down
4 changes: 2 additions & 2 deletions easyPythonpi/test/test_FibRefactored.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import unittest

from easyPythonpi.methods.basics import fibonacci
from easyPythonpi.easyPythonpi import InvalidNumberFibException
from methods.basics import fibonacci
from easyPythonpi import InvalidNumberFibException


class TestFibRefactored(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions easyPythonpi/test/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# Import the necessary modules and classes from graph.py
#from Graph import Graph

from easyPythonpi.methods.graph import Graph
from easyPythonpi.methods.search import *
from methods.Graph import Graph
from methods.search import *

# Create an instance of the Graph class

Expand Down
2 changes: 1 addition & 1 deletion easyPythonpi/test/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Import the necessary modules and functions from searchalgorithms.py

from easyPythonpi.methods.search import *
from methods.search import *

# Create a sample graph for testing
graph = {
Expand Down

0 comments on commit cd81724

Please sign in to comment.