Skip to content

Commit 48fcce6

Browse files
committed
fix code format
Signed-off-by: Aayush Kumar <aayush214.kumar@gmail.com>
1 parent 3d1c4b7 commit 48fcce6

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

scanpipe/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2704,7 +2704,6 @@ class CodebaseResource(
27042704

27052705
parent_path = models.CharField(
27062706
max_length=2000,
2707-
null=True,
27082707
blank=True,
27092708
help_text=_(
27102709
"The path of the resource's parent directory. "

scanpipe/tests/test_views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ def test_file_tree_base_url_lists_top_level_nodes(self):
15811581
make_resource_file(self.project1, path="child1.txt")
15821582
make_resource_file(self.project1, path="dir1")
15831583

1584-
url = reverse("file_tree", kwargs={"slug": self.project1.slug})
1584+
url = reverse("codebase_resource_tree", kwargs={"slug": self.project1.slug})
15851585
response = self.client.get(url)
15861586
children = response.context[-1]["children"]
15871587

@@ -1596,7 +1596,7 @@ def test_file_tree_nested_url_lists_only_children_of_given_path(self):
15961596
make_resource_file(self.project1, path="parent/dir1")
15971597
make_resource_file(self.project1, path="parent/dir1/child2.txt")
15981598

1599-
url = reverse("file_tree", kwargs={"slug": self.project1.slug})
1599+
url = reverse("codebase_resource_tree", kwargs={"slug": self.project1.slug})
16001600
response = self.client.get(url + "?path=parent&tree=true")
16011601
children = response.context["children"]
16021602

0 commit comments

Comments
 (0)