Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: increase clarity by a marginal amount, **rm api and tests/api** #583

Merged
merged 3 commits into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions api/command/__init__.py

This file was deleted.

19 changes: 0 additions & 19 deletions api/command/core.py

This file was deleted.

6 changes: 0 additions & 6 deletions api/command/mixins/__init__.py

This file was deleted.

493 changes: 0 additions & 493 deletions api/command/mixins/team.py

This file was deleted.

170 changes: 0 additions & 170 deletions api/command/mixins/user.py

This file was deleted.

8 changes: 4 additions & 4 deletions app/controller/command/commands/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class UserCommand(Command):
permission_error = "You do not have the sufficient " \
"permission level for this command!"
lookup_error = "Lookup error! User not found!"
noghid_deepdive = 'Specified user does not have a Github account'\
viewinspect_noghid = 'Specified user does not have a Github account'\
'registered with Rocket.'
delete_text = "Deleted user with Slack ID: "
desc = f"for dealing with {command_name}s"
Expand Down Expand Up @@ -178,7 +178,7 @@ def handle(self,
else:
return self.get_help(), 200

def deepdive_helper(self, user: User):
def viewinspect_helper(self, user: User):
"""
Return an attachment that is the membership info.

Expand Down Expand Up @@ -207,7 +207,7 @@ def deepdive_helper(self, user: User):
'''
else:
ret = f'''
{self.noghid_deepdive}
{self.viewinspect_noghid}
'''

return {
Expand Down Expand Up @@ -360,7 +360,7 @@ def view_helper(self,
if param_list['inspect']:
return {'attachments': [
user.get_attachment(),
self.deepdive_helper(user)
self.viewinspect_helper(user)
]}, 200
else:
return {'attachments': [user.get_attachment()]}, 200
Expand Down
Empty file removed tests/api/__init__.py
Empty file.
Empty file removed tests/api/command/__init__.py
Empty file.
Empty file.
Loading