forked from mrpowers-io/quinn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mrpowers-io#211 from jeffbrennan/fix-ruff-lint
Fix ruff lint
- Loading branch information
Showing
6 changed files
with
92 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
import pytest | ||
from quinn.keyword_finder import search_file, search_files, keyword_format, surround_substring | ||
|
||
|
||
def test_search_file(): | ||
search_file("tests/test_files/some_pyspark.py") | ||
|
||
|
||
def test_search_files(): | ||
search_files("tests/test_files") | ||
|
||
|
||
def test_keyword_format(): | ||
print(keyword_format("spark rdd stuff")) | ||
print(keyword_format("spark rdd stuff with bad _jvm")) | ||
print(keyword_format("nice string")) | ||
print(keyword_format("")) | ||
|
||
|
||
def test_surround_substring(): | ||
print(surround_substring("spark rdd stuff", "rdd", "**", "||")) | ||
print(surround_substring("spark rdd stuff", "rdd", "**", "||")) |