Skip to content

Commit

Permalink
added spcachereader as a nonhuman
Browse files Browse the repository at this point in the history
  • Loading branch information
sleexyz committed Feb 5, 2014
1 parent 54ec1a5 commit 60ae50c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 22 deletions.
2 changes: 1 addition & 1 deletion PEA_connect/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def generate():
raw = getRawUserData(from_cache=False)

output = {}
notpeople = ['spsearchservice', 'spsearchcontent', 'spsetup', 'spcachesuper', 'spreader']
notpeople = ['spsearchservice', 'spsearchcontent', 'spsetup', 'spcachesuper', 'spreader', 'spcachereader']
for user in raw['GetAllUserCollectionFromWeb']['Users']['User']:
u = {}
u['login'] = user['_LoginName']
Expand Down
12 changes: 8 additions & 4 deletions tests/data.py → examples/behindthescenes.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
from PEA_connect import data
#A behind the scenes generation of detaileduserdata.json
#Not an example per se, but more like a debugging test


def test_getRawUserData():
#a = data.getRawUserData()
b = data.getRawUserData(source="connect")
b = data.getRawUserData()
assert b
def test_getBasicUserData():
#a = data.getBasicUserData()
b = data.getBasicUserData(source='connect')
b = data.getBasicUserData()
assert b

def test_getDetailedUserData():
b = data.getDetailedUserData(source='connect', cache="True")
b = data.getDetailedUserData()
assert b

def test_getClassData():
b = data.getClassData(source='generate', cache="True")
b = data.getClassData()
assert b
if __name__ == '__main__':
test_getRawUserData()
Expand Down
1 change: 0 additions & 1 deletion tests/PEA_connect

This file was deleted.

8 changes: 0 additions & 8 deletions tests/classes.py

This file was deleted.

8 changes: 0 additions & 8 deletions tests/users.py

This file was deleted.

0 comments on commit 60ae50c

Please sign in to comment.