Ejemplo n.º 1
0
    def __init__(self):

        self._setupSystemLogging()
        self.logger: Logger = getLogger(__name__)

        Preferences.determinePreferencesLocation()
        configFile: Path = Path(Preferences.getPreferencesLocation())
        #
        # Will create a default one if necessary
        #
        if configFile.exists() is False:
            self._preferences = Preferences()
Ejemplo n.º 2
0
    def OnInit(self):

        TestBase.setUpLogging()
        self.logger: Logger = getLogger('TestADialog')
        frameTop: Frame = Frame(parent=None,
                                id=TestADialog.FRAME_ID,
                                title="Test A Dialog",
                                size=(600, 400),
                                style=DEFAULT_FRAME_STYLE)
        # frameTop.Show(False)

        Preferences.determinePreferencesLocation()

        self.SetTopWindow(frameTop)
        self._frameTop = frameTop

        self.initTest()
        return True
Ejemplo n.º 3
0
 def setUpClass(cls):
     TestBase.setUpLogging()
     TestPreferences.clsLogger = getLogger(__name__)
     Preferences.determinePreferencesLocation()  # Must do this once
Ejemplo n.º 4
0
from github import Github
from github.Milestone import Milestone
from github.NamedUser import NamedUser

from gittodoistclone.general.Preferences import Preferences

Preferences.determinePreferencesLocation()
INTEGRATION_TOKEN: str = Preferences().githubApiToken
USERNAME: str = 'hasii2011'

# Used for prototyping


def getIssuesInRepos():

    g = Github(INTEGRATION_TOKEN)

    user: NamedUser = g.get_user(USERNAME)
    print(f'{user=}')

    repo = g.get_repo('hasii2011/PyUt')
    print(f'{repo=}')

    open_issues = repo.get_issues(state='open')
    print(f'**** list of milestone -- Release 7.0 issues')
    for issue in open_issues:
        mileStone: Milestone = issue.milestone
        if mileStone is not None and mileStone.title == 'Release 7.0':
            print(f'{issue=}')

    def setUpClass(cls):
        TestTodoistAdapterBase.setUpClass()
        TestTodoistAdapterReal.clsLogger = getLogger(__name__)

        Preferences.determinePreferencesLocation()