def setUpClass(cls): cls.patcher = mock.patch('steamer.stats.requests') requests_mocked = cls.patcher.start() content = open('fixtures/gutomaia-portal2.xml').read() response = mock.Mock() response.content = content response.status_code = 200 requests_mocked.get.return_value = response cls.stats = get_stats("gutomaia", "portal2")
def setUpClass(cls): cls.patcher = mock.patch("steamer.stats.requests") requests_mocked = cls.patcher.start() content = open("fixtures/gutomaia-portal2.xml").read() response = mock.Mock() response.content = content response.status_code = 200 requests_mocked.get.return_value = response cls.stats = get_stats("gutomaia", "portal2")
def setUpClass(cls): cls.stats = get_stats("gutomaia", "l4d2", 'fixtures/gutomaia-l4d2.xml')
def setUpClass(cls): cls.sim = SteamSimulator() cls.sim.start() cls.stats = get_stats("gutomaia", "tf2")
def impl(context, game): context.game = game context.stats = get_stats(context.username, context.game)
def setUpClass(cls): cls.stats = get_stats("gutomaia", "portal2", 'fixtures/gutomaia-portal2.xml')
def setUpClass(cls): cls.stats = get_stats("gutomaia", "portal2", "fixtures/gutomaia-portal2.xml")