Spaces:
Configuration error
Configuration error
Pradyumn Tendulkar commited on
Commit ·
557c4f1
1
Parent(s): 7740d3b
creating test file
Browse files- test_app.py +14 -0
test_app.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from app import preprocess_text, analyze_resume_keywords
|
| 2 |
+
|
| 3 |
+
def test_stopwords_removal():
|
| 4 |
+
text = "This is a sample resume with python and java skills."
|
| 5 |
+
cleaned = preprocess_text(text)
|
| 6 |
+
# Check basic stopword removal and lowercase
|
| 7 |
+
assert "this" not in cleaned
|
| 8 |
+
assert "python" in cleaned
|
| 9 |
+
|
| 10 |
+
def test_keyword_analysis():
|
| 11 |
+
resume_text = "I have experience with python, java, and sql."
|
| 12 |
+
job_desc = "Looking for skills in python, sql, cloud."
|
| 13 |
+
missing, _ = analyze_resume_keywords(resume_text, job_desc)
|
| 14 |
+
assert "cloud" in missing.get("skills", [])
|