mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
fix: sync paperforge.json version to 1.4.0; fix update.py missing GITHUB_REPO/GITHUB_ZIP imports; remove PaperForge.base generation (duplicates Literature Hub)
This commit is contained in:
parent
f31efec521
commit
94f00e990a
3 changed files with 5 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "PaperForge-Lite",
|
||||
"version": "1.2.0",
|
||||
"version": "1.4.0",
|
||||
"description": "Lightweight literature management automation for Obsidian + Zotero",
|
||||
"repository": "https://github.com/LLLin000/PaperForge",
|
||||
"update": {
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ from paperforge.worker._utils import (
|
|||
read_json,
|
||||
write_json,
|
||||
)
|
||||
from paperforge.worker.status import GITHUB_REPO, GITHUB_ZIP
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
|||
|
|
@ -168,8 +168,8 @@ class TestLiteratureHubBase:
|
|||
assert PAPERFORGE_VIEW_PREFIX in content
|
||||
assert "${LIBRARY_RECORDS}" not in content, "Placeholder should be substituted"
|
||||
|
||||
def test_paperforge_base_created(self, tmp_path):
|
||||
"""PaperForge.base (all records) is created alongside domain bases."""
|
||||
def test_paperforge_base_not_created(self, tmp_path):
|
||||
"""PaperForge.base (all records) is NOT created (removed in v1.4.1)."""
|
||||
vault = tmp_path / "Vault"
|
||||
vault.mkdir()
|
||||
resources = vault / "03_Resources"
|
||||
|
|
@ -197,10 +197,7 @@ class TestLiteratureHubBase:
|
|||
ensure_base_views(vault, paths, config, force=False)
|
||||
|
||||
pf_base = bases / "PaperForge.base"
|
||||
assert pf_base.exists(), "PaperForge.base not created"
|
||||
content = pf_base.read_text(encoding="utf-8")
|
||||
assert content.count("type: table") == 8
|
||||
assert "${LIBRARY_RECORDS}" not in content
|
||||
assert not pf_base.exists(), "PaperForge.base should not be created"
|
||||
|
||||
|
||||
class TestMergeBaseViews:
|
||||
|
|
|
|||
Loading…
Reference in a new issue