contextl 1.2.22 → 1.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/python/query_engine.py +1 -1
package/package.json
CHANGED
package/python/query_engine.py
CHANGED
|
@@ -382,7 +382,7 @@ def query(
|
|
|
382
382
|
))
|
|
383
383
|
|
|
384
384
|
# Down-rank test files unless the user specifically searched for tests
|
|
385
|
-
is_test_query = "test" in
|
|
385
|
+
is_test_query = "test" in q.lower() or "spec" in q.lower()
|
|
386
386
|
from impact_analysis import _is_test_file
|
|
387
387
|
for r in results:
|
|
388
388
|
if _is_test_file(r.path) and not is_test_query:
|