filenames cleanup

This commit is contained in:
Kirill Markin 2024-06-09 10:09:49 +02:00
parent 72ac64ceb6
commit bdc2f2be42
6 changed files with 235 additions and 429 deletions

View file

@ -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