Skip to content

Commit 3e10dc1

Browse files
william-contiJCZuurmond
authored andcommitted
adding method definition
1 parent 4d5cb6d commit 3e10dc1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/source_code/linters/test_pyspark.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,10 @@ def test_from_table_sql_py_linter_fixes_migrated_table(migration_index) -> None:
527527
),
528528
# Test for mount calls inside a function
529529
(
530-
"""variable = searchPath('/mnt/something/', some_variable)""",
530+
"""
531+
def searchPath(rep, dateAlternative = None):
532+
return dbutils.fs.ls(rep)
533+
variable = searchPath('/mnt/something/', some_variable)""",
531534
[
532535
Deprecation(
533536
code='direct-filesystem-access',

0 commit comments

Comments
 (0)