Skip to content

Commit

Permalink
fix registering provider in test project
Browse files Browse the repository at this point in the history
  • Loading branch information
girardinsamuel committed Feb 22, 2022
1 parent e2ead2a commit b07db32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@
ValidationProvider,
AuthorizationProvider,
ORMProvider
{{cookiecutter.project_name|replace('Masonite', '')|replace(' ', '')}}Provider,
]

PROVIDERS += [ {{cookiecutter.project_name|replace('Masonite', '')|replace(' ', '')}}Provider ]
6 changes: 3 additions & 3 deletions sync_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"\n",
]
insert_lines = [
" {{cookiecutter.project_name|replace('Masonite', '')|replace(' ', '')}}Provider,\n"
"\n",
"PROVIDERS += [ {{cookiecutter.project_name|replace('Masonite', '')|replace(' ', '')}}Provider ]\n",
]

import_index = None
Expand All @@ -29,9 +30,8 @@
new_lines = (
file_lines[0:import_index]
+ import_lines
+ file_lines[import_index:insert_index]
+ file_lines[import_index:]
+ insert_lines
+ file_lines[insert_index:]
)


Expand Down

0 comments on commit b07db32

Please sign in to comment.