Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
2ad327a6
Commit
2ad327a6
authored
Jun 17, 2019
by
Okhin
Browse files
If no tags are given, we maintain them
parent
47a7eedf
Pipeline
#2628
passed with stages
in 3 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/rp/tests/test_article.py
View file @
2ad327a6
...
@@ -256,8 +256,8 @@ class TestArticleApi(TestCase):
...
@@ -256,8 +256,8 @@ class TestArticleApi(TestCase):
# Need to test if we keep the tags
# Need to test if we keep the tags
r
=
self
.
client
.
post
(
'/api/articles/'
,
r
=
self
.
client
.
post
(
'/api/articles/'
,
{
'url'
:
a
.
url
,
'title'
:
a
.
title
,
{
'url'
:
a
.
url
,
'title'
:
a
.
title
,
'tags'
:
''
},
}
)
format
=
'json'
)
assert
list
(
a
.
tags
.
all
().
values
(
'name'
))
==
[
json
.
loads
(
t
)
for
t
in
r
.
data
[
'tags'
]]
assert
list
(
a
.
tags
.
all
().
values
(
'name'
))
==
[
json
.
loads
(
t
)
for
t
in
r
.
data
[
'tags'
]]
def
test_api_recover
(
self
):
def
test_api_recover
(
self
):
...
...
Write
Preview
Supports
Markdown
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