コード例 #1
0
ファイル: test_utils.py プロジェクト: baylee-d/osf.io
def construct_query(id, time):
    return '{},{},0,0,{},0,0,0,0,0,{}\r'.format(
        id,
        get_active_user_count(time),
        get_projects(time),
        time.strftime('%Y-%m-%d %H:%M:%S.%f')
    )
コード例 #2
0
ファイル: test_utils.py プロジェクト: scooley/osf.io
def construct_query(id, time):
    return '{},{},0,0,{},0,0,0,0,0,{}\r'.format(
        id,
        get_active_user_count(time),
        get_projects(time),
        time.strftime('%Y-%m-%d %H:%M:%S.%f')
    )
コード例 #3
0
 def test_get_all_user_count(self):
     time_now = datetime.utcnow()
     count = get_active_user_count(time_now)
     nt.assert_equal(count, 2)
コード例 #4
0
ファイル: test_utils.py プロジェクト: baylee-d/osf.io
 def test_get_all_user_count(self):
     time_now = datetime.utcnow()
     count = get_active_user_count(time_now)
     nt.assert_equal(count, 2)