-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_script.py
45 lines (30 loc) · 946 Bytes
/
test_script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"""
Tests the functions in the pixutils module.
Created by Samantha Lavender, June 2017.
Copyright © 2017 Pixalytics Ltd. All rights reserved.
"""
# Python 2 / 3 compatability
from __future__ import print_function
try:
basestring
except NameError:
basestring = str
import requests, re, zipfile, os.path, glob, optparse, getpass, sys, subprocess
import shutil, struct
# Library testing
from pixutils import date_conversion
def main():
usage = "usage: %prog"
parser = optparse.OptionParser(usage)
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False);
(options, args) = parser.parse_args()
verb = options.verbose
year = 2017
jday = 45
print("date_conversion.ymd: ",year,jday)
year,month,day = date_conversion.ymd(year,jday)
print(year,month,day)
print("Finished check")
if __name__ == "__main__":
main()
#EOF