Added a test module to make it faster to include new additions. I also updated the name == main section in each module to use the values in config instead of itself.
21 lines
520 B
Python
21 lines
520 B
Python
import config as config
|
|
import db
|
|
|
|
import credentials
|
|
|
|
class Test_Module():
|
|
def __init__(self):
|
|
super().__init__()
|
|
#self.dbCredential: credentials.DB_Credential
|
|
|
|
def main(self):
|
|
print("[TEST Module]> test")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
testModule = Test_Module()
|
|
|
|
credentials_manager = credentials.Credentials_Module()
|
|
credentials_manager.load_credentials()
|
|
testModule.dbCredential = credentials_manager.find_DB_Credential(config.credentialsNickname)
|
|
testModule.main() |