Skip to content

Instantly share code, notes, and snippets.

View danielgran's full-sized avatar
Never give up

Daniel Gran danielgran

Never give up
View GitHub Profile
@danielgran
danielgran / __init__.py
Created November 23, 2021 05:06
unittest add modules for GitHub action
# 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)))