Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
3c1b0687
Commit
3c1b0687
authored
Feb 09, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated testresults
Changed optional-requirements Prevent redirect 308 on /<data> routes (#1854)
parent
7b7494b8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
45 deletions
+51
-45
web.py
cps/web.py
+2
-2
Calibre-Web TestSummary_Linux.html
test/Calibre-Web TestSummary_Linux.html
+49
-43
No files found.
cps/web.py
View file @
3c1b0687
...
...
@@ -719,8 +719,8 @@ def index(page):
return
render_books_list
(
"newest"
,
sort_param
,
1
,
page
)
@
web
.
route
(
'/<data>/<sort_param>'
,
defaults
=
{
'page'
:
1
,
'book_id'
:
"1"
})
@
web
.
route
(
'/<data>/<sort_param>/'
,
defaults
=
{
'page'
:
1
,
'book_id'
:
"1"
})
@
web
.
route
(
'/<data>/<sort_param>'
,
defaults
=
{
'page'
:
1
,
'book_id'
:
1
})
@
web
.
route
(
'/<data>/<sort_param>/'
,
defaults
=
{
'page'
:
1
,
'book_id'
:
1
})
@
web
.
route
(
'/<data>/<sort_param>/<book_id>'
,
defaults
=
{
'page'
:
1
})
@
web
.
route
(
'/<data>/<sort_param>/<book_id>/<int:page>'
)
@
login_required_if_no_ano
...
...
test/Calibre-Web TestSummary_Linux.html
View file @
3c1b0687
...
...
@@ -37,14 +37,14 @@
<div
class=
"row"
>
<div
class=
"col-xs-6 col-md-6 col-sm-offset-3"
style=
"margin-top:50px;"
>
<p
class=
'text-justify attribute'
><strong>
Start Time:
</strong>
2021-02-0
1 19:02:39
</p>
<p
class=
'text-justify attribute'
><strong>
Start Time:
</strong>
2021-02-0
8 20:40:55
</p>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-xs-6 col-md-6 col-sm-offset-3"
>
<p
class=
'text-justify attribute'
><strong>
Stop Time:
</strong>
2021-02-0
1 21:32:0
3
</p>
<p
class=
'text-justify attribute'
><strong>
Stop Time:
</strong>
2021-02-0
8 23:09:3
3
</p>
</div>
</div>
...
...
@@ -1190,11 +1190,11 @@
<tr
id=
"su"
class=
"
fail
Class"
>
<tr
id=
"su"
class=
"
pass
Class"
>
<td>
TestEditBooksOnGdrive
</td>
<td
class=
"text-center"
>
20
</td>
<td
class=
"text-center"
>
19
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
20
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
...
...
@@ -1375,31 +1375,11 @@
<tr
id=
"ft12.20"
class=
"none bg-danger"
>
<tr
id=
'pt12.20'
class=
'hiddenRow bg-success'
>
<td>
<div
class=
'testcase'
>
TestEditBooksOnGdrive - test_watch_metadata
</div>
</td>
<td
colspan=
'6'
>
<div
class=
"text-center"
>
<a
class=
"popup_link text-center"
onfocus=
'blur()'
onclick=
"showTestDetail('div_ft12.20')"
>
FAIL
</a>
</div>
<!--css div popup start-->
<div
id=
"div_ft12.20"
class=
"popup_window test_output"
style=
"display:none;"
>
<div
class=
'close_button pull-right'
>
<button
type=
"button"
class=
"close"
aria-label=
"Close"
onfocus=
'this.blur();'
onclick=
'document.getElementById('
div_ft12
.
20
').
style
.
display=
'none'
"
><span
aria-hidden=
"true"
>
×
</span></button>
</div>
<div
class=
"text-left pull-left"
>
<pre
class=
"text-left"
>
Traceback (most recent call last):
File "/home/ozzie/Development/calibre-web-test/test/test_edit_ebooks_gdrive.py", line 847, in test_watch_metadata
self.assertNotIn('series', book)
AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'testbook', 'author': ['John Döe'], 'rating': 0, 'languages': ['English'], 'identifier': [], 'cover': '/cover/5?edit=175d2a21-2733-49b6-9fcf-3ef9aee1670b', 'tag': [], 'publisher': ['Randomhäus'], 'comment': '\n', 'add_shelf': [], 'del_shelf': [], 'edit_enable': True, 'kindle': None, 'kindlebtn': None, 'download': ['EPUB (6.7 kB)'], 'read': False, 'archived': False, 'series_all': 'Book 1.0 of test', 'series_index': '1.0', 'series': 'test', 'cust_columns': []}
</pre>
</div>
<div
class=
"clearfix"
></div>
</div>
<!--css div popup end-->
</td>
<td
colspan=
'6'
align=
'center'
>
PASS
</td>
</tr>
...
...
@@ -1615,12 +1595,12 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<tr
id=
"su"
class=
"
pass
Class"
>
<tr
id=
"su"
class=
"
error
Class"
>
<td>
TestKoboSync
</td>
<td
class=
"text-center"
>
9
</td>
<td
class=
"text-center"
>
9
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
8
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
<a
onclick=
"showClassDetail('c18', 9)"
>
Detail
</a>
...
...
@@ -1629,11 +1609,31 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<tr
id=
'pt18.1'
class=
'hiddenRow bg-success'
>
<tr
id=
"et18.1"
class=
"none bg-info"
>
<td>
<div
class=
'testcase'
>
TestKoboSync - test_book_download
</div>
</td>
<td
colspan=
'6'
align=
'center'
>
PASS
</td>
<td
colspan=
'6'
>
<div
class=
"text-center"
>
<a
class=
"popup_link text-center"
onfocus=
'blur()'
onclick=
"showTestDetail('div_et18.1')"
>
ERROR
</a>
</div>
<!--css div popup start-->
<div
id=
"div_et18.1"
class=
"popup_window test_output"
style=
"display:none;"
>
<div
class=
'close_button pull-right'
>
<button
type=
"button"
class=
"close"
aria-label=
"Close"
onfocus=
'this.blur();'
onclick=
'document.getElementById('
div_et18
.
1
').
style
.
display=
'none'
"
><span
aria-hidden=
"true"
>
×
</span></button>
</div>
<div
class=
"text-left pull-left"
>
<pre
class=
"text-left"
>
Traceback (most recent call last):
File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 593, in test_book_download
print(data[0]['NewEntitlement']['BookMetadata']['DownloadUrls'][1]['Url'])
IndexError: list index out of range
</pre>
</div>
<div
class=
"clearfix"
></div>
</div>
<!--css div popup end-->
</td>
</tr>
...
...
@@ -3400,8 +3400,8 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<td>
Total
</td>
<td>
299
</td>
<td>
291
</td>
<td>
1
</td>
<td>
0
</td>
<td>
1
</td>
<td>
7
</td>
<td>
</td>
</tr>
...
...
@@ -3520,7 +3520,7 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<tr>
<th>
SQLAlchemy
</th>
<td>
1.3.2
2
</td>
<td>
1.3.2
3
</td>
<td>
Basic
</td>
</tr>
...
...
@@ -3556,7 +3556,7 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<tr>
<th>
httplib2
</th>
<td>
0.1
8.1
</td>
<td>
0.1
9.0
</td>
<td>
TestEbookConvertCalibreGDrive
</td>
</tr>
...
...
@@ -3574,7 +3574,7 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<tr>
<th>
PyDrive2
</th>
<td>
1.7.
0
</td>
<td>
1.7.
2
</td>
<td>
TestEbookConvertCalibreGDrive
</td>
</tr>
...
...
@@ -3592,7 +3592,7 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<tr>
<th>
httplib2
</th>
<td>
0.1
8.1
</td>
<td>
0.1
9.0
</td>
<td>
TestEbookConvertGDriveKepubify
</td>
</tr>
...
...
@@ -3610,7 +3610,7 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<tr>
<th>
PyDrive2
</th>
<td>
1.7.
0
</td>
<td>
1.7.
2
</td>
<td>
TestEbookConvertGDriveKepubify
</td>
</tr>
...
...
@@ -3652,7 +3652,7 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<tr>
<th>
httplib2
</th>
<td>
0.1
8.1
</td>
<td>
0.1
9.0
</td>
<td>
TestEditBooksOnGdrive
</td>
</tr>
...
...
@@ -3670,7 +3670,7 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<tr>
<th>
PyDrive2
</th>
<td>
1.7.
0
</td>
<td>
1.7.
2
</td>
<td>
TestEditBooksOnGdrive
</td>
</tr>
...
...
@@ -3688,7 +3688,7 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<tr>
<th>
httplib2
</th>
<td>
0.1
8.1
</td>
<td>
0.1
9.0
</td>
<td>
TestSetupGdrive
</td>
</tr>
...
...
@@ -3700,7 +3700,7 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<tr>
<th>
PyDrive2
</th>
<td>
1.7.
0
</td>
<td>
1.7.
2
</td>
<td>
TestSetupGdrive
</td>
</tr>
...
...
@@ -3716,6 +3716,12 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
<td>
TestGoodreads
</td>
</tr>
<tr>
<th>
python-Levenshtein
</th>
<td>
0.12.2
</td>
<td>
TestGoodreads
</td>
</tr>
<tr>
<th>
jsonschema
</th>
<td>
3.2.0
</td>
...
...
@@ -3760,7 +3766,7 @@ AssertionError: 'series' unexpectedly found in {'reader': ['epub'], 'title': 'te
</div>
<script>
drawCircle
(
291
,
1
,
0
,
7
);
drawCircle
(
291
,
0
,
1
,
7
);
</script>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment