import os

from pyfeedstg import FeedForwarder


token = os.environ['TOKEN']
url = 'https://habrahabr.ru/rss/all/'
userId = '9429534'


def test_FeedForwarder():
    forwarder = FeedForwarder(token, url, userId)
    assert len(forwarder.feed['entries']) > 0
    assert forwarder.title is forwarder.feed['feed']['title']


# def test_FeedForwarder_getUpdates():
#     pass


def test_FeedForwarder_sendEntry():
    forwarder = FeedForwarder(token, url, userId)
    forwarder.sendEntry(forwarder.feed['entries'][0])


# def test_Server(self, filename='test_config.yml'):
#     pass

import os

from pyfeedstg import FeedForwarder


token = os.environ['TOKEN']
url = 'https://habrahabr.ru/rss/all/'
userId = '9429534'


def test_FeedForwarder():
    forwarder = FeedForwarder(token, url, userId)
    assert len(forwarder.feed['entries']) > 0
    # assert forwarder.title is forwarder.feed['feed']['title']


# def test_FeedForwarder_getUpdates():
#     pass


def test_FeedForwarder_sendEntry():
    forwarder = FeedForwarder(token, url, userId)
    forwarder.sendEntry(forwarder.feed['entries'][0])


# def test_Server(self, filename='test_config.yml'):
#     pass

test fix