Commit Graph

243 Commits (120c0eea5ae0fd608b42cf62fe7b9657543db1ac)

Author SHA1 Message Date
eric 3337de9a2e Merge remote-tracking branch 'Gluejar/master' into dj111
# Conflicts:
#	core/tests.py
#	payment/tests.py
2018-04-25 16:23:00 -04:00
eric 146f26c5f8 deprecate django unittest 2018-04-19 21:26:29 -04:00
eric 39fdd9683a rip out dead code 2018-04-19 12:24:34 -04:00
eric 29ca00277d fix test 2018-04-18 22:00:36 -04:00
eric 0ba2906c62 delint 2018-04-07 18:38:33 -04:00
Raymond Yee d134ef0606 core.WorkTests.test_valid_subject were technically not working correctly because the test strings should be unicode not str 2017-11-27 12:40:03 -08:00
eric b5e52effd9 optimize id access
See
https://docs.djangoproject.com/en/1.11/topics/db/optimization/#use-forei
gn-key-values-directly
2017-10-28 18:33:58 -04:00
eric 7e190f7e96 fix locale test
The isbn we were using has inexplicably fallen out of google books
index. now testing a zh-CN book
2017-10-26 10:44:26 -04:00
eric 2651afd02f old test book not in GB anymore 2017-09-22 18:31:06 -04:00
eric 1ce4323bc4 precheck every new subject
fix bug with '/' in subject
interpret ';' as list delimiter
add cleaner script
2017-09-15 15:55:37 -04:00
eric d9979ff45b delint, pass tests 2017-08-03 17:31:12 -04:00
eric ada73a909c nits and tests 2017-08-03 17:09:42 -04:00
eric db97a98ae8 https 2017-07-27 10:33:13 -04:00
eric b9053183ba passes all tests without secret keys 2016-12-30 22:26:16 -05:00
eric cf57c78686 bookloader is mocked 2016-12-30 17:24:20 -05:00
Raymond Yee 4405b4ee73 change regluit.core.tests.BookLoaderTests.test_add_related to test whether every WorkRelation points back properly 2016-09-29 15:15:46 -07:00
Raymond Yee 2e9ff2bf1c got regluit.core.tests.BookLoaderTests.test_add_related to work now -- but have to check
with Eric to see whether it's exactly the right test
2016-09-29 15:02:27 -07:00
eric 64de760d63 test was non-deterministic 2016-08-26 13:10:43 -04:00
eric 7ad0d7f494 implemented ebook versions
It turned out that ebookfile handling needed revamping with the
addition of ebook versions; so this change turned out to be rather big.
2016-08-24 15:41:29 -04:00
eric aafbd7c70b set translation relation in add_related 2016-08-16 11:42:58 -04:00
eric b1e6dcec4f update tests for explicit fixture loading 2016-07-23 12:08:28 -04:00
eric f3cb6c9edf switch to contrib_comments
removed in 1.8
2016-07-21 16:05:57 -04:00
Raymond Yee 4edd9127a8 hopefully, this will fix http://jenkins.unglueit.com/job/regluit/3708/console 2016-06-28 08:48:06 -07:00
eric a8a24c1208 add to test 2016-06-10 18:15:53 -04:00
eshellman f99b621c19 Merge pull request #585 from Gluejar/push
FTP Push seconds on the onix file is a good idea
2016-05-30 10:30:34 -04:00
Raymond Yee 7f9478e758 first pass at tests -- some cleanup needed 2016-05-23 17:03:55 -07:00
eric bf220c5c6f Merge branch 'master' into push
# Conflicts:
#	settings/common.py
2016-05-20 16:44:13 -04:00
Raymond Yee 1b329f1b82 date for regluit.core.tests.CampaignTests.test_b2u needs to be kept within about 3 years of current date to pass 2016-05-16 08:18:42 -07:00
eric 4e8a834d02 fix test 2016-05-12 12:56:25 -04:00
eric f662920c2a Merge branch 'master' into push 2016-05-10 17:33:54 -04:00
eric 50930ce2b1 send kindle from s3
add file archiving code, because we needed it for push distribution.

Also use archive for kindle. tweak send-to-kindle docs.
2016-05-09 18:32:38 -04:00
Raymond Yee ba516cd08d Merge branch 'master' into dj16 2016-05-04 13:52:25 -07:00
Raymond Yee 7ec9a98206 separate out failing test 2016-04-29 08:55:12 -07:00
eric b47d166eda 1.6 transaction sideeffect 2016-04-09 13:24:44 -04:00
eric bca17837a0 add fixtures in testcases 2016-04-09 13:21:12 -04:00
eric 7180661fe3 generate mobi on ask 2016-03-28 14:30:05 -04:00
Raymond Yee 7bd29807f6 fix problem with Obama book in Chinese 2016-03-25 15:07:31 -07:00
Raymond Yee c5b7c20593 mock_ebook -> test_mode (much clearer) 2016-03-07 13:17:33 -08:00
Raymond Yee abe04a02c7 * Modified core.bookloader.load_from_yaml to go from assuming that there is an epub to enumerating
ebooks from corresponding release specified in yaml_url

* add GitHubTests.test_ebooks_in_github_release

* modified bookloader.load_from_yaml to allow for mock loading of epub in core.tests.BookLoaderTests.test_add_by_local_yaml
2016-03-04 12:09:30 -08:00
eric a575de59b6 make pubname and authname unique 2016-01-25 14:08:37 -05:00
Raymond Yee bf8e385cb1 Merge pull request #545 from Gluejar/improve-opds
Improve opds
2016-01-20 17:19:31 -08:00
eric 51f5ac990b fix test 2016-01-19 20:53:55 -05:00
eric f33cd6e487 revamp sitemap priority, add to opds 2016-01-19 17:28:45 -05:00
eric 4dc4e2d898 add test to reproduce duplicate pubname
Unglue.it error on January 11, 2016 at 5:02 AM:
Traceback (most recent call last):

 File
"/opt/regluit/ENV/local/lib/python2.7/site-packages/django/core/handlers
/base.py", line 109, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/opt/regluit/frontend/views.py", line 795, in googlebooks
   edition = bookloader.add_by_googlebooks_id(googlebooks_id)

 File "/opt/regluit/core/bookloader.py", line 343, in
add_by_googlebooks_id
   e.set_publisher(d.get('publisher'))

 File "/opt/regluit/core/models.py", line 1827, in set_publisher
   pub_name = PublisherName.objects.get(name=publisher_name)

 File
"/opt/regluit/ENV/local/lib/python2.7/site-packages/django/db/models/man
ager.py", line 131, in get
   return self.get_query_set().get(*args, **kwargs)

 File
"/opt/regluit/ENV/local/lib/python2.7/site-packages/django/db/models/que
ry.py", line 368, in get
   % (self.model._meta.object_name, num, kwargs))

MultipleObjectsReturned: get() returned more than one PublisherName --
it returned 2! Lookup parameters were {'name': u'North-Holland'}
2016-01-18 10:08:58 -05:00
eric 3d3a90941a switch to obscure book for tests 2016-01-18 09:59:52 -05:00
Raymond Yee 65b0ded78b fix failing http://jenkins.unglueit.com/view/All/job/regluit/3436/console -- Google books api data change 2015-12-19 14:10:51 -05:00
Raymond Yee d417eeec2d Re [#108339512] (https://www.pivotaltracker.com/story/show/108339512) -- for now
just mark the failing Google Books API tests as expected failures.
2015-11-17 08:00:08 -08:00
eric a74a2c47b2 now handles loading multiple editions 2015-09-24 17:58:34 -04:00
Raymond Yee 40cdd1b141 Merge pull request #515 from Gluejar/recover-edition
fix occasional bug
2015-08-24 20:50:14 -07:00
eric 1833318c2d fix occasional bug 2015-08-22 14:29:35 -04:00