mirror of
https://github.com/khoj-ai/khoj.git
synced 2026-01-20 03:58:06 -05: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
|