Skip to content

Commit

Permalink
Update test_cron_handler.py
Browse files Browse the repository at this point in the history
modify username to be 'True'
  • Loading branch information
bitkarrot authored Oct 24, 2023
1 parent 504a5ea commit 3218e4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_cron_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
async def main():
vars = get_env_data_as_dict('../.env')
print(vars)
username = vars['SCHEDULER_USER']
username = True # vars['SCHEDULER_USER']
print(f'Scheduler Username: {username}')

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

ch = CronHandler(username)
ch = CronHandler(user=username)

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


if __name__ == "__main__":
asyncio.run(main())
asyncio.run(main())

0 comments on commit 3218e4e

Please sign in to comment.