We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54f4a88 commit d3d5f0aCopy full SHA for d3d5f0a
plugins/python3/src/policy.rs
@@ -50,6 +50,18 @@ mod test {
50
assert!(policy.is_student_source_file(Path::new("src/some_file.py")));
51
}
52
53
+ #[test]
54
+ fn in_root_is_source_file() {
55
+ let policy = Python3StudentFilePolicy::new(PathBuf::from(""));
56
+ assert!(policy.is_student_source_file(Path::new("some_file.py")));
57
+ }
58
+
59
60
+ fn in_subdir_is_source_file() {
61
62
+ assert!(policy.is_student_source_file(Path::new("src/some_dir/some_file.py")));
63
64
65
#[test]
66
fn pycache_is_not_source_file() {
67
let policy = Python3StudentFilePolicy::new(PathBuf::from(""));
0 commit comments