2017-10-11 12:06:19 -07:00
|
|
|
|
# vim: set fileencoding=utf-8:
|
|
|
|
|
'''
|
|
|
|
|
tests/conftest.py - command line options for warcprox tests
|
2016-04-06 19:37:55 -07:00
|
|
|
|
|
2017-10-11 12:06:19 -07:00
|
|
|
|
Copyright (C) 2015-2017 Internet Archive
|
2015-08-20 22:51:29 +00:00
|
|
|
|
|
2017-10-11 12:06:19 -07:00
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
|
of the License, or (at your option) any later version.
|
2015-08-20 22:51:29 +00:00
|
|
|
|
|
2017-10-11 12:06:19 -07:00
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
2015-08-20 22:51:29 +00:00
|
|
|
|
|
2017-10-11 12:06:19 -07:00
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
USA.
|
|
|
|
|
'''
|
2015-08-25 01:26:51 +00:00
|
|
|
|
|
2017-10-11 12:06:19 -07:00
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
|
|
|
parser.addoption(
|
|
|
|
|
'--rethinkdb-dedup-url', dest='rethinkdb_dedup_url', help=(
|
|
|
|
|
'rethinkdb dedup url, e.g. rethinkdb://db0.foo.org,'
|
|
|
|
|
'db1.foo.org:38015/my_warcprox_db/my_dedup_table'))
|
|
|
|
|
parser.addoption(
|
|
|
|
|
'--rethinkdb-big-table-url', dest='rethinkdb_big_table_url', help=(
|
|
|
|
|
'rethinkdb big table url (table will be populated with '
|
|
|
|
|
'various capture information and is suitable for use as '
|
|
|
|
|
'index for playback), e.g. rethinkdb://db0.foo.org,'
|
|
|
|
|
'db1.foo.org:38015/my_warcprox_db/captures'))
|
|
|
|
|
parser.addoption(
|
|
|
|
|
'--rethinkdb-trough-db-url', dest='rethinkdb_trough_db_url', help=(
|
|
|
|
|
'🐷 url pointing to trough configuration rethinkdb database, '
|
|
|
|
|
'e.g. rethinkdb://db0.foo.org,db1.foo.org:38015'
|
|
|
|
|
'/trough_configuration'))
|
2015-08-25 01:26:51 +00:00
|
|
|
|
|