Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / tests / common.py @ b1cb2583

History | View | Annotate | Download (6 kB)

# Date Author Comment
1808f7bc 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Refactor user creation

Provide auth.make_user() as the single way to create a new user. This
function is responsible to set all automatically generated fields, such as
username, uuid, and token. Clean up AstakosUser.save(), that used to
update these fields, and remove AstakosUser.__init__(). Remove trigger...

ef1fb98b 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Reset user sign flags when adding new terms

When new terms are added, set has_signed_terms=False for all users, forcing
them to accept the new terms. If there are no terms, a new user is created
with has_signed_terms=True.

With this change we can skip querying the terms when authenticating a user,...

fb619437 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Use TestCase instead of TransactionTestCase

We need to be sure that code runs in a transaction (provided by TestCase).
If we need in some case to test the transactional behavior itself,
we could there use TransactionTestCase.

630e6b6d 06/12/2013 05:20 pm Kostas Papadimitriou

astakos: Some additional tests

bd1f667b 06/03/2013 12:00 pm Giorgos Korfiatis

astakos: Import new-style services and resources

70e11eaa 05/20/2013 09:18 pm Sofia Papagiannaki

astakos: reorganize views

  • split project views from the rest views
  • move third party authentication views (astakos.im.target)
    under astakos.im.views
  • move view decorators to a separate module
  • move utility methods utilized by views to a separate module
1ac3349d 05/16/2013 07:54 pm Kostas Papadimitriou

astakos: Split settings in separate modules