update of API fixed #9 post_entries content parameter
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# coding: utf-8
|
||||
import datetime
|
||||
import unittest
|
||||
from wallabag import Wallabag
|
||||
|
||||
@@ -31,11 +32,18 @@ class TestWallabag(unittest.TestCase):
|
||||
|
||||
def create_entry(self):
|
||||
title = 'foobar title'
|
||||
url = 'https://trigger-happy.eu/'
|
||||
url = 'https://somwhere.over.the.raibow.com/'
|
||||
tags = ['foo', 'bar']
|
||||
starred = 0
|
||||
archive = 0
|
||||
data = self.w.post_entries(url, title, tags, starred, archive)
|
||||
content = '<p>Additional content</p>'
|
||||
language = 'FR'
|
||||
published_at = datetime.datetime.now()
|
||||
authors = 'John Doe'
|
||||
public = 0
|
||||
original_url = 'http://localhost'
|
||||
data = self.w.post_entries(url, title, tags, starred, archive, content, language, published_at, authors,
|
||||
public, original_url)
|
||||
return data
|
||||
|
||||
def test_get_entries(self):
|
||||
|
||||
Reference in New Issue
Block a user