MCPcopy Create free account
hub / github.com/LaihoE/Python-demoparser / test_ticks

Method test_ticks

tests/parser_test.py:44–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 self.assertEqual(assert_frame_equal(players, correct_players), True)"""
43
44 def test_ticks(self):
45 df = self.parser.parse_ticks(["X", "Y", "Z", "m_bIsScoped", "velocity_X",
46 "velocity_Y", "velocity_Z",
47 "viewangle_yaw", "viewangle_pitch",
48 "health", "in_buy_zone", "flash_duration"
49 ])
50 df = df.drop("name", axis=1)
51 df = df.drop("steamid", axis=1)
52 s = int(np.nansum(df.to_numpy()))
53 self.assertEqual(s, 14427302575)

Callers

nothing calls this directly

Calls 1

parse_ticksMethod · 0.80

Tested by

no test coverage detected