Example #1
0
 def setup_method(self, method):
     """ setup any state tied to the execution of the given method in a
     class.  setup_method is invoked for every test method of a class.
     """
     configuration.set_logging(level=10)
     configuration.debug = True
     self.pypi = PyPi(configuration)
Example #2
0
    def setup_method(self):
        """ setup any state tied to the execution of the given method in a
        class.  setup_method is invoked for every test method of a class.
        """
        configuration.set_logging(level=10)
        configuration.debug = True

        self.g_utils = GithubUtils(self.github_token, self.github_user)

        self.g_utils.create_repo()
        self.g_utils.setup_repo()

        # set conf
        configuration.repository_name = self.g_utils.repo
        configuration.repository_owner = self.github_user
        configuration.github_token = self.github_token
        configuration.github_username = self.github_user
        configuration.refresh_interval = 1

        self.release_bot = ReleaseBot(configuration)
Example #3
0
def prepare_conf():
    configuration.set_logging(level=10)
    configuration.debug = True
    configuration.github_token = os.environ.get('GITHUB_TOKEN')
    return configuration