Created
November 23, 2021 05:06
-
-
Save danielgran/68551a59bbe4109b960ad64074491383 to your computer and use it in GitHub Desktop.
unittest add modules for GitHub action
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put this into your ./test/__init__.py | |
testdir = os.path.dirname(__file__) | |
srcdir = '../<your_project_name>' # without <>, remove that comment | |
sys.path.insert(0, os.path.abspath(os.path.join(testdir, srcdir))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gold