mirror of
https://github.com/nicolabs/nicobot.git
synced 2026-02-22 18:25:21 +01:00
~ .gitignore was preventing a test fixture to be committed
This commit is contained in:
parent
45956b1600
commit
333630f2f6
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -18,7 +18,7 @@ lib/
|
|||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
./var/
|
||||
wheels/
|
||||
pip-wheel-metadata/
|
||||
share/python-wheels/
|
||||
|
|
|
|||
8
tests/fixtures/docker_with_var_mount/var/nicobot/config.yml
vendored
Normal file
8
tests/fixtures/docker_with_var_mount/var/nicobot/config.yml
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
locale: en
|
||||
|
||||
backend: jabber
|
||||
|
||||
jabber_username: mybot@conversations.im
|
||||
jabber_password: TheBestPasswordInTheWorld
|
||||
jabber_recipients:
|
||||
- itsme@conversations.im
|
||||
|
|
@ -94,9 +94,10 @@ class TestOptions(unittest.TestCase):
|
|||
shutil.copytree('tests/fixtures/docker_with_var_mount', tmpdir)
|
||||
config = TransbotConfig()
|
||||
# Mimics the command line parameters in the docker image
|
||||
# Also increase verbosity to debug test failures
|
||||
args = [ '--verbosity', '1', '--config-dirs', dir_var_nicobot, dir_etc_nicobot ]
|
||||
# 2. Test begins
|
||||
logging.getLogger().setLevel(1)
|
||||
# 2. Test begins
|
||||
config = parse_args_2pass( self.parser, args, config )
|
||||
# Directories should be present in the same order
|
||||
self.assertEqual( 2, len(config.config_dirs) )
|
||||
|
|
|
|||
Loading…
Reference in a new issue