prince1604 commited on
Commit
c6919bb
·
1 Parent(s): 966b662

Update debug scripts and add gitignore

Browse files
Files changed (2) hide show
  1. .gitignore +13 -0
  2. debug_legacy.py +2 -0
.gitignore ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__/
2
+ *.pyc
3
+ *.pyo
4
+ *.pyd
5
+ .Python
6
+ env/
7
+ venv/
8
+ .venv/
9
+ *.log
10
+ .DS_Store
11
+ .idea/
12
+ .vscode/
13
+ *.sqlite
debug_legacy.py CHANGED
@@ -29,11 +29,13 @@ def test_legacy_separation():
29
  print("SUCCESS: 'images_with_short_alt' key is ABSENT.")
30
  else:
31
  print("FAILURE: 'images_with_short_alt' key is PRESENT.")
 
32
 
33
  if "short_alt_count" not in details:
34
  print("SUCCESS: 'short_alt_count' key is ABSENT.")
35
  else:
36
  print("FAILURE: 'short_alt_count' key is PRESENT.")
 
37
 
38
  print(f"\nPoor Quality Count: {details['poor_quality_count']}")
39
  print("\n--- Poor Quality List Content ---")
 
29
  print("SUCCESS: 'images_with_short_alt' key is ABSENT.")
30
  else:
31
  print("FAILURE: 'images_with_short_alt' key is PRESENT.")
32
+ exit(1)
33
 
34
  if "short_alt_count" not in details:
35
  print("SUCCESS: 'short_alt_count' key is ABSENT.")
36
  else:
37
  print("FAILURE: 'short_alt_count' key is PRESENT.")
38
+ exit(1)
39
 
40
  print(f"\nPoor Quality Count: {details['poor_quality_count']}")
41
  print("\n--- Poor Quality List Content ---")