Renamed modpol/modpol directory to modpol_core for clarity and consistency

This commit is contained in:
Nathan Schneider
2021-12-18 14:50:41 -07:00
parent bd95fcf811
commit c2852b1bce
32 changed files with 6 additions and 8 deletions

View File

@@ -0,0 +1,23 @@
dofile("../modpol.lua")
print('\nRemoving existing orgs')
modpol.orgs.reset()
print('\nCreating an org called "test_org"')
test_org = modpol.instance:add_org('test_org', 'luke')
print('\nTrying to create an org with the same name')
duplicate = modpol.instance:add_org('test_org', 'luke')
print('\nAdding user "nathan" to test_org')
test_org:add_member('nathan')
print('\nTrying to add duplicate user to test_org')
test_org:add_member('nathan')
print('\nRemoving user "nathan" from test_org')
test_org:remove_member('nathan')
print('\nTrying to remove user "nathan" from empty member list')
test_org:remove_member('nathan')