Skip to content

Commit 3218e4e

Browse files
authored
Update test_cron_handler.py
modify username to be 'True'
1 parent 504a5ea commit 3218e4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_cron_handler.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
async def main():
1414
vars = get_env_data_as_dict('../.env')
1515
print(vars)
16-
username = vars['SCHEDULER_USER']
16+
username = True # vars['SCHEDULER_USER']
1717
print(f'Scheduler Username: {username}')
1818

1919
print("testing CronHandler")
@@ -28,7 +28,7 @@ async def main():
2828
now = dt.datetime.now()
2929
print(f'current datetime: {now}')
3030

31-
ch = CronHandler(username)
31+
ch = CronHandler(user=username)
3232

3333
# regular cron job with comment
3434
response = await ch.new_job("ls", "15 * * * *", comment=comment, env={})
@@ -102,4 +102,4 @@ async def main():
102102

103103

104104
if __name__ == "__main__":
105-
asyncio.run(main())
105+
asyncio.run(main())

0 commit comments

Comments
 (0)