update of API fixed #9 post_entries content parameter

This commit is contained in:
FoxMaSk
2018-05-27 11:20:02 +02:00
parent e892d3ceeb
commit 9e5fdb1c50
5 changed files with 26 additions and 9 deletions

View File

@@ -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):