Commit 68e97f6f authored by ilv's avatar ilv
Browse files

Links file generation tests

parent dd152558
#!/usr/bin/python
#
# Dummy script to test GetTore's Core module progress
#
import gettor
try:
core = gettor.Core('gettor.cfg')
core.create_links_file('Github')
core.add_link('Github', 'linux', 'es',
'https://foo.bar https://foo.bar.asc 111-222-333-444')
core.add_link('Github', 'linux', 'es',
'https://foo.bar https://foo.bar.asc 555-666-777-888')
except ValueError as e:
print "Value error: " + str(e)
except RuntimeError as e:
print "Internal error: " + str(e)
[provider]
name = Github
[linux]
es = https://foo.bar https://foo.bar.asc 111-222-333-444,
https://foo.bar https://foo.bar.asc 555-666-777-888
[windows]
[osx]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment