mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-12 21:28:29 +03:00
Fix up unit tests for new structure
This commit is contained in:
@@ -2,8 +2,9 @@ from auto_archiver.modules.html_formatter import HtmlFormatter
|
||||
from auto_archiver.core import Metadata, Media
|
||||
|
||||
|
||||
def test_format():
|
||||
formatter = HtmlFormatter({})
|
||||
def test_format(setup_module):
|
||||
formatter = setup_module(HtmlFormatter)
|
||||
|
||||
metadata = Metadata().set("content", "Hello, world!").set_url('https://example.com')
|
||||
|
||||
final_media = formatter.format(metadata)
|
||||
|
||||
Reference in New Issue
Block a user