You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if we could add a setup.py and change the file strucutre to allow for the testing-framework functions to be imported.
Benefits:
Functions could be used ouside of the testing-framework setting, while still working there
Rather than having to be careful in what working dir one is and using import utils *, one could import testingframeowrk.utils, allowing for better editor support and more varied folder structure.
All tests would effectively become "shared", and useable accorss different tets
To Do:
Move all files to a subfolder testingframework, such that it could be imported as from testingframework.utilities import *, note that testing-framework would not be valid subdirectory name.
Sounds great, let's do it! Tell me if you need help!
I would rather not encourage from testingframework.utilities import * but make sure you import what is needed and used, so that we have a sense of where functions are coming from even without smart editors that trace it.
Are you sure using an exec is the best way of handling versions in your setup.py:
Thanks for the comments!! I had a quick look into the versioner - and it looks really cool. Didn't know that existed - cheers Tamas. If you would like to include it that'd be great!
Activity
gabor1 commentedon Jul 10, 2021
Sounds like a good idea. Let's get some feedback from some python wizards, @jameskermode @noambernstein @stenczelt
jameskermode commentedon Jul 11, 2021
I have no objection, sounds like it would work well.
stenczelt commentedon Jul 11, 2021
Sounds great, let's do it! Tell me if you need help!
I would rather not encourage
from testingframework.utilities import *but make sure you import what is needed and used, so that we have a sense of where functions are coming from even without smart editors that trace it.Are you sure using an exec is the best way of handling versions in your
setup.py:perhaps
versioneeror for a time manual versioning would be nicer.LarsSchaaf commentedon Jul 11, 2021
Thanks for the comments!! I had a quick look into the
versioner- and it looks really cool. Didn't know that existed - cheers Tamas. If you would like to include it that'd be great!