mirror of
https://github.com/kirill-markin/repo-to-text.git
synced 2025-12-06 03:22:23 -08:00
filenames cleanup
This commit is contained in:
parent
72ac64ceb6
commit
bdc2f2be42
6 changed files with 235 additions and 429 deletions
|
|
@ -6,7 +6,7 @@ import time
|
|||
def test_repo_to_text():
|
||||
# Remove any existing snapshot files to avoid conflicts
|
||||
for file in os.listdir('.'):
|
||||
if file.startswith('repo_snapshot_') and file.endswith('.txt'):
|
||||
if file.startswith('repo-to-text_') and file.endswith('.txt'):
|
||||
os.remove(file)
|
||||
|
||||
# Run the repo-to-text command
|
||||
|
|
@ -16,7 +16,7 @@ def test_repo_to_text():
|
|||
assert result.returncode == 0, f"Command failed with error: {result.stderr.decode('utf-8')}"
|
||||
|
||||
# Check for the existence of the new snapshot file
|
||||
snapshot_files = [f for f in os.listdir('.') if f.startswith('repo_snapshot_') and f.endswith('.txt')]
|
||||
snapshot_files = [f for f in os.listdir('.') if f.startswith('repo-to-text_') and f.endswith('.txt')]
|
||||
assert len(snapshot_files) == 1, "No snapshot file created or multiple files created"
|
||||
|
||||
# Verify that the snapshot file is not empty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue