evennia.web.website.tests

class evennia.web.website.tests.EvenniaWebTest(methodName='runTest')[source]

Bases: evennia.utils.test_resources.EvenniaTest

account_typeclass = 'typeclasses.accounts.Account'
object_typeclass = 'typeclasses.objects.Object'
character_typeclass = 'typeclasses.characters.Character'
exit_typeclass = 'typeclasses.exits.Exit'
room_typeclass = 'typeclasses.rooms.Room'
script_typeclass = 'typeclasses.scripts.Script'
channel_typeclass = 'typeclasses.channels.Channel'
url_name = 'index'
unauthenticated_response = 200
authenticated_response = 200
setUp()[source]

Sets up testing environment

test_valid_chars()[source]

Make sure account has playable characters

get_kwargs()[source]
test_get()[source]
login()[source]
test_get_authenticated()[source]
class evennia.web.website.tests.AdminTest(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'django_admin'
unauthenticated_response = 302
class evennia.web.website.tests.IndexTest(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'index'
class evennia.web.website.tests.RegisterTest(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'register'
class evennia.web.website.tests.LoginTest(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'login'
class evennia.web.website.tests.LogoutTest(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'logout'
class evennia.web.website.tests.PasswordResetTest(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'password_change'
unauthenticated_response = 302
class evennia.web.website.tests.WebclientTest(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'webclient:index'
test_get()[source]
test_get_disabled()[source]
class evennia.web.website.tests.ChannelListTest(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'channels'
class evennia.web.website.tests.ChannelDetailTest(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'channel-detail'
setUp()[source]

Sets up testing environment

get_kwargs()[source]
class evennia.web.website.tests.HelpListTest(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'help'
class evennia.web.website.tests.HelpDetailTest(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'help-entry-detail'
setUp()[source]

Sets up testing environment

get_kwargs()[source]
test_view()[source]
test_object_cache()[source]
class evennia.web.website.tests.HelpLockedDetailTest(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'help-entry-detail'
setUp()[source]

Sets up testing environment

get_kwargs()[source]
test_locked_entry()[source]
test_lock_with_perm()[source]
class evennia.web.website.tests.CharacterCreateView(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'character-create'
unauthenticated_response = 302
test_valid_access_multisession_0()[source]

Account1 with no characters should be able to create a new one

test_valid_access_multisession_2()[source]

Account1 should be able to create a new character

class evennia.web.website.tests.CharacterPuppetView(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'character-puppet'
unauthenticated_response = 302
get_kwargs()[source]
test_invalid_access()[source]

Account1 should not be able to puppet Account2:Char2

class evennia.web.website.tests.CharacterListView(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'characters'
unauthenticated_response = 302
class evennia.web.website.tests.CharacterManageView(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'character-manage'
unauthenticated_response = 302
class evennia.web.website.tests.CharacterUpdateView(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'character-update'
unauthenticated_response = 302
get_kwargs()[source]
test_valid_access()[source]

Account1 should be able to update Account1:Char1

test_invalid_access()[source]

Account1 should not be able to update Account2:Char2

class evennia.web.website.tests.CharacterDeleteView(methodName='runTest')[source]

Bases: evennia.web.website.tests.EvenniaWebTest

url_name = 'character-delete'
unauthenticated_response = 302
get_kwargs()[source]
test_valid_access()[source]

Account1 should be able to delete Account1:Char1

test_invalid_access()[source]

Account1 should not be able to delete Account2:Char2