Exemplo n.º 1
0
    def setUp(self):
        super(TestImporterAnorak, self).setUp()

        # create tournament
        self.maxDiff = None
        self.t = tm.Tournament(slug="import-test")
        self.t.save()
        self.logger = logging.getLogger(__name__)
        self.logger.setLevel(logging.INFO)
        self.importer = AnorakTournamentDataImporter(self.t,
                                                     logger=self.logger)
Exemplo n.º 2
0
    def setUp(self):
        super(TestImporterAnorak, self).setUp()

        # create tournament
        self.maxDiff = None
        self.tournament = tm.Tournament(slug="import-test")
        self.tournament.save()
        self.logger = logging.getLogger(__name__)
        self.logger.propagate = False  # keep logs contained for tests
        self.logger.setLevel(logging.INFO)
        self.importer = AnorakTournamentDataImporter(self.tournament,
                                                     logger=self.logger)