~ .gitignore was preventing a test fixture to be committed

This commit is contained in:
nicobo 2021-02-09 07:45:38 +01:00
parent 45956b1600
commit 333630f2f6
No known key found for this signature in database
GPG key ID: 2581E71C5FA5285F
3 changed files with 11 additions and 2 deletions

2
.gitignore vendored
View file

@ -18,7 +18,7 @@ lib/
lib64/
parts/
sdist/
var/
./var/
wheels/
pip-wheel-metadata/
share/python-wheels/

View file

@ -0,0 +1,8 @@
locale: en
backend: jabber
jabber_username: mybot@conversations.im
jabber_password: TheBestPasswordInTheWorld
jabber_recipients:
- itsme@conversations.im

View file

@ -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) )