Fix tests

This commit is contained in:
Ludovic Stephan 2020-09-16 19:19:29 +02:00
parent 8f9c94fe10
commit a14c9d9574
4 changed files with 55 additions and 40 deletions

View file

@ -44,9 +44,9 @@ class TestStats(TestCase):
"/k-fet/accounts/FOO/stat/operations?{}".format(
"&".join(
[
"scale=day",
"types=['purchase']",
"scale_args={'n_steps':+7,+'last':+True}",
"scale-name=day",
"scale-n_steps=7",
"scale-last=True",
"format=json",
]
)
@ -64,7 +64,17 @@ class TestStats(TestCase):
# receives a Redirect response
articles_urls = [
"/k-fet/articles/{}/stat/sales/list".format(article.pk),
"/k-fet/articles/{}/stat/sales".format(article.pk),
"/k-fet/articles/{}/stat/sales?{}".format(
article.pk,
"&".join(
[
"scale-name=day",
"scale-n_steps=7",
"scale-last=True",
"format=json",
]
),
),
]
for url in articles_urls:
resp = client.get(url)