コード例 #1
0
 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")
コード例 #2
0
 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")
コード例 #3
0
ファイル: l4d2stats_test.py プロジェクト: gutomaia/steamer-py
 def setUpClass(cls):
     cls.stats = get_stats("gutomaia", "l4d2", 'fixtures/gutomaia-l4d2.xml')
コード例 #4
0
 def setUpClass(cls):
     cls.sim = SteamSimulator()
     cls.sim.start()
     cls.stats = get_stats("gutomaia", "tf2")
コード例 #5
0
 def setUpClass(cls):
     cls.sim = SteamSimulator()
     cls.sim.start()
     cls.stats = get_stats("gutomaia", "tf2")
コード例 #6
0
ファイル: steps.py プロジェクト: gutomaia/steamer-py
def impl(context, game):
    context.game = game
    context.stats = get_stats(context.username, context.game)
コード例 #7
0
ファイル: portal2_test.py プロジェクト: gutomaia/steamer-py
 def setUpClass(cls):
     cls.stats = get_stats("gutomaia", "portal2",
                           'fixtures/gutomaia-portal2.xml')
コード例 #8
0
ファイル: portal2_test.py プロジェクト: gutomaia/steamer-py
 def setUpClass(cls):
     cls.stats = get_stats("gutomaia", "portal2", "fixtures/gutomaia-portal2.xml")
コード例 #9
0
ファイル: steps.py プロジェクト: gutomaia/steamer-py
def impl(context, game):
    context.game = game
    context.stats = get_stats(context.username, context.game)