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")
Ejemplo n.º 3
0
 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 setUpClass(cls):
     cls.sim = SteamSimulator()
     cls.sim.start()
     cls.stats = get_stats("gutomaia", "tf2")
Ejemplo n.º 6
0
def impl(context, game):
    context.game = game
    context.stats = get_stats(context.username, context.game)
Ejemplo n.º 7
0
 def setUpClass(cls):
     cls.stats = get_stats("gutomaia", "portal2",
                           'fixtures/gutomaia-portal2.xml')
Ejemplo n.º 8
0
 def setUpClass(cls):
     cls.stats = get_stats("gutomaia", "portal2", "fixtures/gutomaia-portal2.xml")
Ejemplo n.º 9
0
def impl(context, game):
    context.game = game
    context.stats = get_stats(context.username, context.game)