mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
- Delete tests testing deprecated server side indexing flows
- Delete `Local(Plaintext|Org|Markdown|Pdf)Config' methods, files and
references in tests
- Index test data via new helper method, `get_index_files'
- It is modelled after the old `get_org_files' variants in main app
- It passes the test data in required format to `configure_content'
Allows maintaining the more realistic tests from before while
using new indexing mechanism (rather than the deprecated server
side indexing mechanism
16 lines
372 B
Python
16 lines
372 B
Python
# Standard Modules
|
|
from pathlib import Path
|
|
|
|
from khoj.utils.cli import cli
|
|
|
|
|
|
# Test
|
|
# ----------------------------------------------------------------------------------------------------
|
|
def test_cli_minimal_default():
|
|
# Act
|
|
actual_args = cli(["-vvv"])
|
|
|
|
# Assert
|
|
assert actual_args.log_file == Path("~/.khoj/khoj.log")
|
|
assert actual_args.verbose == 3
|