mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-17 16:44:26 -04:00
fix: Minor issues that were breaking tests
This commit is contained in:
parent
b8efaa5b6a
commit
11b08a063d
2 changed files with 5 additions and 2 deletions
|
@ -6,7 +6,7 @@ import re
|
||||||
from typing import IO, Iterable
|
from typing import IO, Iterable
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from django.db.models imort Model
|
from django.db.models import Model
|
||||||
|
|
||||||
from ..util import (
|
from ..util import (
|
||||||
htmldecode,
|
htmldecode,
|
||||||
|
|
|
@ -7,6 +7,9 @@ from typing import IO, Iterable, Optional
|
||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
from django.db.models import Model
|
||||||
|
|
||||||
from ..vendor.pocket import Pocket
|
from ..vendor.pocket import Pocket
|
||||||
|
|
||||||
from ..util import enforce_types
|
from ..util import enforce_types
|
||||||
|
@ -96,7 +99,7 @@ def should_parse_as_pocket_api(text: str) -> bool:
|
||||||
|
|
||||||
|
|
||||||
@enforce_types
|
@enforce_types
|
||||||
def parse_pocket_api_export(input_buffer: IO[str], **_kwargs) -> Iterable[Link]:
|
def parse_pocket_api_export(input_buffer: IO[str], **_kwargs) -> Iterable[Model]:
|
||||||
"""Parse bookmarks from the Pocket API"""
|
"""Parse bookmarks from the Pocket API"""
|
||||||
|
|
||||||
input_buffer.seek(0)
|
input_buffer.seek(0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue