Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Create chamber_of_deputies app #265

Merged
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
49c0f1d
startapp chamber_of_deputies
giovanisleite Oct 14, 2017
aa45708
startapp chamber_of_deputies
giovanisleite Oct 14, 2017
e8d99a3
split core models between core and chamber_of_deputies models
giovanisleite Oct 14, 2017
57d33d0
Register the new app chamber_of_deputies
giovanisleite Oct 14, 2017
10b401e
migrations of the new models
giovanisleite Oct 14, 2017
a997d4a
fix - chamber_of_deputies models diverged
giovanisleite Oct 14, 2017
e2417db
Fix models import paths
giovanisleite Oct 14, 2017
59bfd11
Add permission to dashboard access chamber of deputies Reimbursements
giovanisleite Oct 14, 2017
8bd4c92
Remove unused files from chamber_of_deputies app
giovanisleite Oct 14, 2017
21fbe89
Move Reimbursement querysets to chamber_of_deputies
giovanisleite Oct 14, 2017
5f8b47c
Reflect the permission change at dashboard sites to tests
giovanisleite Oct 14, 2017
c57de74
Move chamber_of_deputies models related samples from core tests to ch…
giovanisleite Oct 14, 2017
2dd28bc
Move chamber models related tests from core to chamber_of_deputies tests
giovanisleite Oct 14, 2017
5e9532c
Move chamber_of_deputies related commands from core to chamber_of_dep…
giovanisleite Oct 14, 2017
012a2fa
Fix commands path to chamber_of_deputies commands
giovanisleite Oct 14, 2017
10f5abc
Move chamber_of_deputies commands tests from core to chamber_of_deput…
giovanisleite Oct 14, 2017
cc2fa83
Data migration
giovanisleite Oct 15, 2017
bb1ad20
Remove spaces from lines almost blank
giovanisleite Oct 17, 2017
2bb9d73
Add migrations folder to Code Climate exclude_paths
giovanisleite Oct 17, 2017
ec0865c
Merge master and solve conflicts
giovanisleite Oct 22, 2017
f3eb7eb
Move tasks to chamber_of_deputies
giovanisleite Oct 22, 2017
f0983db
Remove MagicMock from test_reimbursements_command imports
giovanisleite Oct 22, 2017
3993ff5
Remove blank lines
giovanisleite Oct 22, 2017
48aeac8
Update app's verbose name
giovanisleite Oct 23, 2017
51922a0
Update api endpoints
giovanisleite Oct 23, 2017
c61cd85
Merge branch 'master' into giovani-create-chamber-of-deputies-app
giovanisleite Oct 24, 2017
e7bf9fb
Divide split api.serializers in chamber_of_deputies.serializers and c…
giovanisleite Oct 24, 2017
06b1d82
Update serializers references
giovanisleite Oct 24, 2017
2195384
2 blank lines - pep8 fix
giovanisleite Oct 24, 2017
5fbc8d5
Merge master and solve conflicts
giovanisleite Oct 26, 2017
fb5aa3f
Move api urls and views to chamber of deputies and core
giovanisleite Oct 26, 2017
ea125aa
Update api/chamber_of_deputies urls and related
giovanisleite Oct 26, 2017
cef9e52
Update namespaces related to api
giovanisleite Oct 26, 2017
c0464b1
Move tests from api to chamber_of_deputies and core
giovanisleite Oct 26, 2017
eb6ba52
Remove api folder
giovanisleite Oct 26, 2017
30e050b
Add blank line - pep8
giovanisleite Oct 26, 2017
70cb4d1
Remove api from installed apps
giovanisleite Oct 26, 2017
fa2053e
Omit chamber_of_deputies tests and migrations from coverage
giovanisleite Oct 26, 2017
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
Prev Previous commit
Next Next commit
Reflect the permission change at dashboard sites to tests
  • Loading branch information
giovanisleite committed Oct 14, 2017
commit 5f8b47cdfb5a6a1a5804d3199a94d23457e0bdbc
9 changes: 5 additions & 4 deletions jarbas/dashboard/tests/test_dummy_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ def setUp(self):
self.user = DummyUser()

def test_has_module_perms(self):
self.assertTrue(self.user.has_module_perms('core'))
self.assertTrue(self.user.has_module_perms('chamber_of_deputies'))
self.assertFalse(self.user.has_module_perms('core'))
self.assertFalse(self.user.has_module_perms('api'))
self.assertFalse(self.user.has_module_perms('dashboard'))
self.assertFalse(self.user.has_module_perms('frontend'))

def test_has_perm(self):
self.assertTrue(self.user.has_perm('core.change_reimbursement'))
self.assertFalse(self.user.has_perm('core.add_reimbursement'))
self.assertFalse(self.user.has_perm('core.delete_reimbursement'))
self.assertTrue(self.user.has_perm('chamber_of_deputies.change_reimbursement'))
self.assertFalse(self.user.has_perm('chamber_of_deputies.add_reimbursement'))
self.assertFalse(self.user.has_perm('chamber_of_deputies.delete_reimbursement'))