Commit Graph

124 Commits

Author SHA1 Message Date
Paul Makepeace 3d5834c522 Add URL to all URLErrors 2011-04-28 17:13:19 +00:00
Paul Makepeace e771a0ed53 Fall back to distutils. All platforms info & another classifier 2011-04-28 16:39:16 +00:00
Paul Makepeace c412ef4e27 .pyc, etc 2011-04-28 15:58:43 +00:00
Paul Makepeace 480bb3d5b5 Artfinder inspirational credit 2011-04-28 15:57:29 +00:00
Paul Makepeace d10a1cc5d5 requirements.txt for pip install while I figure out how to get setup.py to do this 2011-04-28 15:51:16 +00:00
Paul Makepeace 28af98cadb use python setup.py where possible. Remove unused vars. Add more clean up :-/ 2011-04-28 15:50:30 +00:00
Paul Makepeace 6869ae3134 Update Installation based on using setup.py. 2011-04-28 15:49:17 +00:00
Paul Makepeace 98a1f5eb8e Add more metadata. Use setuptools instead of distutils for install_requires and tests, the former of which I couldn't get to work anyway :-/ 2011-04-28 15:48:42 +00:00
Paul Makepeace 461befef21 mv google/test to tests/ and make it a package 2011-04-28 15:47:10 +00:00
Paul Makepeace 885afe6f06 (was renamed) 2011-04-28 15:39:09 +00:00
Paul Makepeace fc69ff7e3c Restore mocked get_models so subsequent tests in the same session work 2011-04-28 15:15:10 +00:00
Paul Makepeace b7e56fe203 Add some more diagnostics on server connection failure 2011-04-28 14:43:33 +00:00
Paul Makepeace 35bb7754be Add setup.py 2011-04-28 12:13:19 +00:00
Paul Makepeace e03b3913b4 Add readme target & clean-up 2011-04-28 12:02:17 +01:00
Paul Makepeace 8838261f76 Add attribution for data sources. Mention make smalltest, and non-destructive nature of tests. 2011-04-28 11:59:35 +01:00
Paul Makepeace 3b3e297a6b Add make {clean,dist} to Makefile 2011-04-27 19:28:22 +01:00
Paul Makepeace 4d97828324 Add README.rst and Makefile 2011-04-27 18:53:17 +01:00
Paul Makepeace 6d59e2e2cf Document compute_facets() 2011-04-27 05:04:46 +01:00
Paul Makepeace 5c4930cc78 Couple Engine to FacetsResponse to enable looking up computed facet by their originating object handle/id. Remove unused Engine.as_dict(). Add some commentary. 2011-04-26 23:52:13 -04:00
Paul Makepeace f30af6dcdd Remove loose line 2011-04-26 22:50:02 -04:00
Paul Makepeace ec52c05b3e Add in tests {6} - {9} and skip rest (at least for now) 2011-04-26 20:18:09 -04:00
Paul Makepeace a0e4ce60e8 Add NumericFacet.reset that clears the range (from, to) 2011-04-26 19:31:10 -04:00
Paul Makepeace dbe0ba518a Add expression to NumericFacet 2011-04-26 19:24:32 -04:00
Paul Makepeace 7ce6468d9b Add TutorialTestWebScraping (section 6) {1} - {4} 2011-04-26 19:11:56 -04:00
Paul Makepeace fe68217fba Take expression out of Facet and put it in TextFacet. Add case_sensitive to TextFilterFacet 2011-04-26 19:09:52 -04:00
Paul Makepeace 5f24f5bd69 Add (back in) self.columns and use in move_column to provide index='end' convenience to move a column to the end (rightmost in UI) 2011-04-26 18:59:32 -04:00
Paul Makepeace b23147ce48 Fix TextFilterFacet and make query most important option. 2011-04-26 18:56:59 -04:00
Paul Makepeace a34c8c72c9 Add HistoryEntry class for responses to many commands. Store that info in the project.history_entry which then allows the test suite to interrogate via assertInResponse (much tidier). 2011-04-26 18:21:43 -04:00
Paul Makepeace 87903f7808 Amend envvars for GOOGLE_REFINE_{HOST,PORT}. 2011-04-26 17:02:40 -04:00
Paul Makepeace 423a887f56 Add Engine.set_facets() so RefineProject.{compute_facets,get_rows}() don't lose the Engine's other attrs (i.e. mode). Split TestFacet into component classes in test_facet.py. 2011-04-26 16:59:17 -04:00
Paul Makepeace 0ba7c56ac3 Tidy grammar & test for no filtering. 2011-04-26 16:52:19 -04:00
Paul Makepeace df2661448a Simplify server URL parsing & allow a server behind e.g. Varnish. 2011-04-26 15:44:32 -04:00
Paul Makepeace 7bcf52996a Factor out RefineTestCase into test/refinetest.py 2011-04-26 15:15:47 -04:00
Paul Makepeace 25f144bf85 Move non-tutorial tests out to test_refine.py. 2011-04-26 15:05:26 -04:00
Paul Makepeace fa6c544cfc Rename test_{refine,tutorial}.py. 2011-04-26 14:58:56 -04:00
Paul Makepeace 5f8437327a Tidy & add test_refine commentary. 2011-04-26 14:55:18 -04:00
Paul Makepeace bde4eb7466 Add row indexing to get_rows()'s response.rows. 2011-04-26 14:54:44 -04:00
Paul Makepeace d5038c6618 Move camel case testing to test_facet 2011-04-26 14:20:47 -04:00
Paul Makepeace e8beb422b7 Rename test_{engine,facet}.py 2011-04-26 14:13:52 -04:00
Paul Makepeace 27586bc10c Remove find-project-by-name functionality as it doesn't really work. Defer project name discovering 'til it's needed. 2011-04-26 02:27:22 -04:00
Paul Makepeace 51d2294878 Break facet & engine out into facet.py; move refine.py into refine/refine.py. Tidy up (c) notice. 2011-04-26 02:02:44 -04:00
Paul Makepeace b33d280ee7 Factor out BoolFacet from StarredFacet and add BlankFacet. 2011-04-26 01:04:30 -04:00
Paul Makepeace b34ff146c4 Tidy up Facet 2011-04-26 01:03:28 -04:00
Paul Makepeace 478fae7d91 Add split_column(), move_column(). Allow RefineRow to have missing data and return None. This seems to happen when column data at the end of a row is all null. 2011-04-26 00:30:20 -04:00
Paul Makepeace 65c3309e94 Add reorder_columns(), transpose_rows_into_columns() 2011-04-25 23:15:35 -04:00
Paul Makepeace 17f39d4447 80 cols 2011-04-25 23:14:21 -04:00
Paul Makepeace a65ad6fce1 Make facet methods chainable. 2011-04-25 23:13:41 -04:00
Paul Makepeace 364bed871b Add rename_column(), fill_down(), transpose_columns_into_rows() 2011-04-25 21:26:32 -04:00
Paul Makepeace d3bd69798b Add tests to complete section 4. 2011-04-25 15:58:33 -04:00
Paul Makepeace 062f283e6b Add blank_down() and project.has_records (its consequence). Fix unintentional sort in test, and clear sort after reorder_rows(). 2011-04-25 15:45:20 -04:00