Skip to content

Commit 853d928

Browse files
Jorge Fernandez HernandezJorge Fernandez Hernandez
authored andcommitted
Variable Gaia in function should be lowercase
1 parent eaa0cd1 commit 853d928

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

astroquery/gaia/tests/test_gaia_remote.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,51 +8,51 @@
88
@pytest.mark.remote_data
99
def test_query_object_columns_with_radius():
1010
# Regression test: `columns` were ignored if `radius` was provided [#2025]
11-
Gaia = GaiaClass()
12-
sc = SkyCoord(ra=0*u.deg, dec=0*u.deg)
13-
table = Gaia.query_object_async(sc, radius=10*u.arcsec, columns=['ra'])
11+
gaia = GaiaClass()
12+
sc = SkyCoord(ra=0 * u.deg, dec=0 * u.deg)
13+
table = gaia.query_object_async(sc, radius=10 * u.arcsec, columns=['ra'])
1414
assert table.colnames == ['ra', 'dist']
1515

1616

1717
@pytest.mark.remote_data
1818
def test_query_object_row_limit():
19-
Gaia = GaiaClass()
19+
gaia = GaiaClass()
2020
coord = SkyCoord(ra=280, dec=-60, unit=(u.degree, u.degree), frame='icrs')
2121
width = u.Quantity(0.1, u.deg)
2222
height = u.Quantity(0.1, u.deg)
23-
r = Gaia.query_object_async(coordinate=coord, width=width, height=height)
23+
r = gaia.query_object_async(coordinate=coord, width=width, height=height)
2424

25-
assert len(r) == Gaia.ROW_LIMIT
25+
assert len(r) == gaia.ROW_LIMIT
2626

27-
Gaia.ROW_LIMIT = 10
28-
r = Gaia.query_object_async(coordinate=coord, width=width, height=height)
27+
gaia.ROW_LIMIT = 10
28+
r = gaia.query_object_async(coordinate=coord, width=width, height=height)
2929

30-
assert len(r) == 10 == Gaia.ROW_LIMIT
30+
assert len(r) == 10 == gaia.ROW_LIMIT
3131

32-
Gaia.ROW_LIMIT = -1
33-
r = Gaia.query_object_async(coordinate=coord, width=width, height=height)
32+
gaia.ROW_LIMIT = -1
33+
r = gaia.query_object_async(coordinate=coord, width=width, height=height)
3434

3535
assert len(r) == 184
3636

3737

3838
@pytest.mark.remote_data
3939
def test_cone_search_row_limit():
40-
Gaia = GaiaClass()
40+
gaia = GaiaClass()
4141
coord = SkyCoord(ra=280, dec=-60, unit=(u.degree, u.degree), frame='icrs')
4242
radius = u.Quantity(0.1, u.deg)
43-
j = Gaia.cone_search_async(coord, radius=radius)
43+
j = gaia.cone_search_async(coord, radius=radius)
4444
r = j.get_results()
4545

46-
assert len(r) == Gaia.ROW_LIMIT
46+
assert len(r) == gaia.ROW_LIMIT
4747

48-
Gaia.ROW_LIMIT = 10
49-
j = Gaia.cone_search_async(coord, radius=radius)
48+
gaia.ROW_LIMIT = 10
49+
j = gaia.cone_search_async(coord, radius=radius)
5050
r = j.get_results()
5151

52-
assert len(r) == 10 == Gaia.ROW_LIMIT
52+
assert len(r) == 10 == gaia.ROW_LIMIT
5353

54-
Gaia.ROW_LIMIT = -1
55-
j = Gaia.cone_search_async(coord, radius=radius)
54+
gaia.ROW_LIMIT = -1
55+
j = gaia.cone_search_async(coord, radius=radius)
5656
r = j.get_results()
5757

5858
assert len(r) == 1218

0 commit comments

Comments
 (0)