Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_add_direction_latlon(self):
traj = make_traj([Node(0, 0), Node(10, 10, day=2)], CRS_LATLON)
traj.add_direction()
result = traj.df[DIRECTION_COL_NAME].tolist()
assert result[0] == pytest.approx(44.561451413257714, 5)
assert result[1] == pytest.approx(44.561451413257714, 5)