Commit 1b7abb22 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

astakos: Remove obsolete code

Remove project_tests.py, empty package im.endpoints and fixtures
parent 859b737b
include README
include distribute_setup.py
global-include */templates/* */fixtures/* */static/*
global-include */templates/* */static/*
global-exclude */.DS_Store
include astakos/settings.d/*
recursive-include astakos/im/templates/ *.html *.txt
......
[
{
"model": "im.memberjoinpolicy",
"pk": 1,
"fields": {
"policy": "auto_accept",
"description": "automatically accepted by the system"
}
},
{
"model": "im.memberjoinpolicy",
"pk": 2,
"fields": {
"policy": "owner_accepts",
"description": "accepted by the owner of the project"
}
},
{
"model": "im.memberjoinpolicy",
"pk": 3,
"fields": {
"policy": "closed",
"description": "no member can leave the project"
}
}
]
[
{
"model": "im.memberleavepolicy",
"pk": 1,
"fields": {
"policy": "auto_accept",
"description": "automatically accepted by the system"
}
},
{
"model": "im.memberleavepolicy",
"pk": 2,
"fields": {
"policy": "owner_accepts",
"description": "accepted by the owner of the project"
}
},
{
"model": "im.memberleavepolicy",
"pk": 3,
"fields": {
"policy": "closed",
"description": "members can not leave the project"
}
}
]
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'synnefo.settings'
from django.conf import settings
from unittest import TestCase, main as test_main
from astakos.im.models import (AstakosUser,
Project,
ProjectDefinition)
_serial = 0
def get_serial():
global _serial
serial = _serial + 1
_serial = serial
return serial
def mk_rand_user():
name = "user-%d" % get_serial()
user = AstakosUser()
return user
class BasicTestProjects(TestCase):
@classmethod
def setUpClass(cls):
users = {}
cls.users = users
for _ in xrange(5):
user = mk_rand_user()
users[user.username] = user
def test_001_create_definition(self):
pass
def test_001_create_project(self):
pass
if __name__ == '__main__':
test_main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment