Skip to content
Snippets Groups Projects
Commit 1d5ca094 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

unit test that

parent bf25a610
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
* `snakehouse` doesn't need cython and satella installed in advance
* added `find_all`
* made available for PyPy users
* deprecated `find_pyx` and `find_pyx_and_c`
# v1.4
......
import typing as tp
import warnings
from satella.coding import for_argument
from satella.files import read_lines, find_files
......@@ -11,6 +13,7 @@ def find_pyx(directory_path: str) -> tp.List[str]:
:param directory_path: directory to look through
:return: .pyx files found
"""
warnings.warn('This is deprecated. Use find_all instead', DeprecationWarning)
return find_files(directory_path, '(.*)\\.pyx$', scan_subdirectories=True)
......@@ -32,6 +35,7 @@ def find_pyx_and_c(directory_path: str) -> tp.List[str]:
:param directory_path:
:return: list of all .pyx and .c files found in given directory
"""
warnings.warn('This is deprecated. Use find_all instead', DeprecationWarning)
files = find_pyx(directory_path)
files.extend(find_c(directory_path))
return files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment