Skip to content

Commit

Permalink
Strip src. prefix instead of replacing all src.
Browse files Browse the repository at this point in the history
Co-authored-by: Kalyan R <[email protected]>
  • Loading branch information
jason810496 and rawwar committed Feb 5, 2025
1 parent bfd5d72 commit 0272798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/always/test_project_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def list_of_classes(self):
operators_paths = self.get_classes_from_file(operator_file, NEW_PROVIDER_SRC, is_new=True)
classes.update(operators_paths)
# replace src. prefix with empty string for all classes
classes = {k.replace("src.", ""): v for k, v in classes.items()}
classes = {k.strip("src."): v for k, v in classes.items()}
return classes

def get_classes_from_file(
Expand Down

0 comments on commit 0272798

Please sign in to comment.