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
eric
16cc217f2b
test ridiculously long
2015-08-21 18:31:52 -04:00
eric
4244a5fb98
fix tests
2015-08-18 14:34:52 -04:00
eric
779ba45d97
don't add v to version string
...
don't load ebook if version string starts with 0.0.
add test with local version
2015-08-18 06:57:14 -04:00
eric
42c66c29b6
fix rights lookup
...
also sync cc.py in core with cc.py in gitenberg metadata. Will DRY
later.
2015-08-07 01:21:15 -04:00
eric
098eddc327
work in progress
2015-07-29 23:01:43 -04:00
Raymond Yee
bb74261013
sample book (temporarily) not recognized by Google Books API
2015-05-27 12:37:47 -07:00
Raymond Yee
53a37b1b31
Merge branch 'master' into mobigen_integrate
2015-04-03 10:05:02 -07:00
eric
7cb0f473de
remove many-commas subjects, prevent their addition
2015-01-30 11:33:22 -05:00
Raymond Yee
dfbdf9bbd7
add a test for mobigen
2015-01-26 09:48:16 -08:00
eric
b54b21fdfe
keep is_free up to date
2014-12-13 12:37:35 -05:00
Raymond Yee
95958847ed
Since http://jenkins.unglueit.com/job/regluit/2912/console , the cover images from Google Books api are now starting with http and not https, which is strange.
...
This fix allows the test to pass for http or https book covers
2014-12-08 10:09:05 -08:00
Raymond Yee
db969f859d
Merge pull request #412 from Gluejar/privacy
...
I will do the merge to test the dropbox functionality on just.
2014-11-14 14:43:27 -08:00
eric
3d71917d70
self-host license badges
2014-11-10 13:14:59 -05:00