Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Nounous
re2o
Commits
595c6b99
Commit
595c6b99
authored
Apr 14, 2018
by
Maël Kervella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pylint compliance on search
parent
2ca271bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
search/__init__.py
search/__init__.py
+3
-0
search/acl.py
search/acl.py
+1
-1
search/tests.py
search/tests.py
+4
-1
No files found.
search/__init__.py
View file @
595c6b99
...
...
@@ -20,5 +20,8 @@
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""search
The app in charge of evrything related to the search function
"""
from
.acl
import
*
search/acl.py
View file @
595c6b99
...
...
@@ -27,7 +27,7 @@ Here are defined some functions to check acl on the application.
"""
def
can_view
(
user
):
def
can_view
(
_
user
):
"""Check if an user can view the application.
Args:
...
...
search/tests.py
View file @
595c6b99
...
...
@@ -19,7 +19,10 @@
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""search.tests
The tests for the Search module.
"""
from
django.test
import
TestCase
#
from django.test import TestCase
# Create your tests here.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment