Просмотр исходного кода

Fix article test with no newspaper

JoostSijm 4 лет назад
Родитель
Сommit
eef0831d60
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      tests/test_vboo_info_bot_functions.py

+ 2 - 2
tests/test_vboo_info_bot_functions.py

@@ -43,8 +43,8 @@ def test_article_info_two(api_wrapper, article_keys):
     assert set(article_keys).issubset(response.keys()), "All keys should be in the response"
     assert isinstance(response['article_id'], int), "Article id should be an integer"
     assert isinstance(response['article_title'], str), "Article title should be a str"
-    assert isinstance(response['newspaper_id'], int), "Newspaper id should be an integer"
-    assert isinstance(response['newspaper_name'], str), "Newspaper name should be a string"
+    assert response['newspaper_id'] is None, "Newspaper id should be none"
+    assert response['newspaper_name'] is None, "Newspaper name should be none"
     assert isinstance(response['author_name'], str), "Author name should be a string"
     assert isinstance(response['author_id'], int), "Author id should be an integer"
     assert isinstance(response['region_name'], str), "Region name should be a string"