Skip to content

Commit

Permalink
Update test_script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Gakamine authored Jan 25, 2023
1 parent 07333be commit a672579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
IP="192.168.1.1"
DATATYPE="PDF"
BASE_URL = "http://127.0.0.1:8000/"
FILE='sample.df'

with open('sample.pdf', 'rb') as afile:
with open(FILE, 'rb') as afile:
base64=base64.b64encode(afile.read()).decode()
hash_file=hashlib.md5(afile.read()).hexdigest()

Expand Down

0 comments on commit a672579

Please sign in to comment.