mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
refactor: Move pytest fixtures to its own file
This commit is contained in:
parent
1866da3f8a
commit
d5fc13b34e
4 changed files with 11 additions and 8 deletions
|
@ -6,14 +6,7 @@ import subprocess
|
|||
from pathlib import Path
|
||||
import json
|
||||
|
||||
import pytest
|
||||
|
||||
@pytest.fixture
|
||||
def process(tmp_path):
|
||||
os.chdir(tmp_path)
|
||||
process = subprocess.run(['archivebox', 'init'], capture_output=True)
|
||||
return process
|
||||
|
||||
from .fixtures import *
|
||||
|
||||
def test_init(tmp_path, process):
|
||||
assert "Initializing a new ArchiveBox collection in this folder..." in process.stdout.decode("utf-8")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue