Exemplo n.º 1
0
def get_one_news():
    """ Test method to get one news. """
    LOGGER.debug('getOneNews is called.')
    return operations.get_one_news()
Exemplo n.º 2
0
def test_getOneNews_basic():
    news = operations.get_one_news()
    print(news)
    assert news is not None
    print("test passed")
Exemplo n.º 3
0
 def get_one_news(self):  # pylint: disable=no-self-use
     """ Get one news from mongoDB"""
     return operations.get_one_news()
Exemplo n.º 4
0
def get_one_news():
    '''Test get one news function'''
    print('getting one news')
    #news = mongodb_client.get_db()['news'].find_one()
    #return json.loads(dumps(news))
    return operations.get_one_news()
Exemplo n.º 5
0
def get_one_news():
    print("get_one_news is called")
    # res = mongodb_client.get_db()['news'].find_one() (only provide api)
    return operations.get_one_news()
Exemplo n.º 6
0
def test_get_one_news_basic():
    """Test Get one news method"""
    news = operations.get_one_news()
    print(news)
    assert news is not None
    print('test_get_one_news_basic passed!')
Exemplo n.º 7
0
def get_one_news():
    """Get one news"""
    print("get_one_news is called")
    return operations.get_one_news()
Exemplo n.º 8
0
def get_one_news():
    """ test method to get one news """
    logger.debug('getonenews is called')
    res = mongodb_client.get_db()['news'].find_one()
    return operations.get_one_news()
Exemplo n.º 9
0
def test_get_one_news_basic():
    """Test method getOneNews"""
    news = operations.get_one_news()
    print(news)
    assert news is not None
    print("Test passed!")
Exemplo n.º 10
0
def test_one_news_basic():
    """ Basic test for getting one news """
    news = operations.get_one_news()
    print news
    assert news is not None
    print 'Test get one news passed!'
def test_get_one_news_basic():
    """Test get_one_news function"""
    news = operations.get_one_news()
    assert news is not None
    print('operations basically work!')  # pylint: disable=superfluous-parens
Exemplo n.º 12
0
def get_one_news():
    LOGGER.debug('getOneNews is called.')
    return operations.get_one_news()
Exemplo n.º 13
0
def test_get_one_news_basic():
    news = operations.get_one_news()
    print(news)
    assert news is not None
    print('test_get_one_news_basic passed!')
def test():
    news = operations.get_one_news()
    assert news is not None
    print("test passed")