From 0277f9f9c25350ff39c3093d9e1056d8ffd60926 Mon Sep 17 00:00:00 2001 From: hancush Date: Mon, 25 Apr 2022 14:13:27 -0500 Subject: [PATCH] Prep for new version --- README.rst | 2 +- census/tests/test_census.py | 13 +++++++++++-- setup.cfg | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 57e4d0b..37a969e 100644 --- a/README.rst +++ b/README.rst @@ -67,7 +67,7 @@ Datasets For each dataset, the first year listed is the default. -* acs5: `ACS 5 Year Estimates `_ (2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010, 2009) +* acs5: `ACS 5 Year Estimates `_ (2020, 2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010, 2009) * acs3: `ACS 3 Year Estimates `_ (2013, 2012) * acs1: `ACS 1 Year Estimates `_ (2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011) * acs5dp: `ACS 5 Year Estimates, Data Profiles `_ (2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010, 2009) diff --git a/census/tests/test_census.py b/census/tests/test_census.py index 893079b..4d25d9c 100644 --- a/census/tests/test_census.py +++ b/census/tests/test_census.py @@ -352,8 +352,17 @@ def test_new_style_endpoints(self): res_2014_2014 = client.acs1.state('B01001_004E', Census.ALL) res_2014_2016 = client.acs1.state('B01001_004E', Census.ALL, year=2016) - assert res_2016_2016 == res_2014_2016 - assert res_2014_2014 == res_2016_2014 + assert sorted( + res_2016_2016, key=lambda x: x['state'] + ) == sorted( + res_2014_2016, key=lambda x: x['state'] + ) + + assert sorted( + res_2014_2014, key=lambda x: x['state'] + ) == sorted( + res_2016_2014, key=lambda x: x['state'] + ) def test_older_sf1(self): client = Census(KEY) diff --git a/setup.cfg b/setup.cfg index 8b19f31..aa73410 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = census -version = 0.8.18 +version = 0.8.19 author = Jeremy Carbaugh author_email = jcarbaugh@sunlightfoundation.com maintainer = Forest Gregg