Skip to content

Commit 42bc79c

Browse files
dhimmeljorisvandenbossche
authored andcommitted
TST: Create compressed salary testing data (pandas-dev#14587)
(cherry picked from commit 85a6464)
1 parent 03d3f18 commit 42bc79c

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

pandas/io/tests/parser/common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -652,18 +652,18 @@ def test_read_csv_parse_simple_list(self):
652652
def test_url(self):
653653
# HTTP(S)
654654
url = ('https://raw.github.com/pandas-dev/pandas/master/'
655-
'pandas/io/tests/parser/data/salary.table.csv')
655+
'pandas/io/tests/parser/data/salaries.csv')
656656
url_table = self.read_table(url)
657657
dirpath = tm.get_data_path()
658-
localtable = os.path.join(dirpath, 'salary.table.csv')
658+
localtable = os.path.join(dirpath, 'salaries.csv')
659659
local_table = self.read_table(localtable)
660660
tm.assert_frame_equal(url_table, local_table)
661661
# TODO: ftp testing
662662

663663
@tm.slow
664664
def test_file(self):
665665
dirpath = tm.get_data_path()
666-
localtable = os.path.join(dirpath, 'salary.table.csv')
666+
localtable = os.path.join(dirpath, 'salaries.csv')
667667
local_table = self.read_table(localtable)
668668

669669
try:
283 Bytes
Binary file not shown.
336 Bytes
Binary file not shown.
445 Bytes
Binary file not shown.

pandas/io/tests/parser/test_network.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ class TestUrlGz(tm.TestCase):
1818

1919
def setUp(self):
2020
dirpath = tm.get_data_path()
21-
localtable = os.path.join(dirpath, 'salary.table.csv')
21+
localtable = os.path.join(dirpath, 'salaries.csv')
2222
self.local_table = read_table(localtable)
2323

2424
@tm.network
2525
def test_url_gz(self):
2626
url = ('https://raw.github.com/pandas-dev/pandas/'
27-
'master/pandas/io/tests/parser/data/salary.table.gz')
27+
'master/pandas/io/tests/parser/data/salaries.csv.gz')
2828
url_table = read_table(url, compression="gzip", engine="python")
2929
tm.assert_frame_equal(url_table, self.local_table)
3030

3131
@tm.network
3232
def test_url_gz_infer(self):
33-
url = 'https://s3.amazonaws.com/pandas-test/salary.table.gz'
33+
url = 'https://s3.amazonaws.com/pandas-test/salaries.csv.gz'
3434
url_table = read_table(url, compression="infer", engine="python")
3535
tm.assert_frame_equal(url_table, self.local_table)
3636

0 commit comments

Comments
 (0)