File: salsa-config.t

package info (click to toggle)
devscripts 2.25.15
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 8,528 kB
  • sloc: perl: 26,530; sh: 11,698; python: 4,428; makefile: 363
file content (18 lines) | stat: -rw-r--r-- 665 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use Test::More tests => 8;

BEGIN {
    use_ok('Devscripts::Salsa::Config');
}

@Devscripts::Config::config_files = ('t/config1');
@ARGV = ('push_repo', '--disable-kgb', '--tagpending', '--irker');

ok($conf = Devscripts::Salsa::Config->new->parse, 'Parse');

ok(($conf->kgb == 0 and $conf->disable_kgb), 'KGB disabled');
ok(($conf->tagpending and $conf->disable_tagpending == 0),
    'Tagpending enabled');
ok(($conf->issues == 'disabled'), 'Enable-issues disabled');
ok(($conf->email == 0     and $conf->disable_email == 0), 'Email ignored');
ok(($conf->mr == 'enabled'), 'MR enabled');
ok(($conf->irker == 1     and $conf->disable_irker == 0), 'Irker enabled');