Exemple #1
0
    def test3_split(self):
        sys.argv = [
            '--INPUT', 'input.ini', '--SPLIT', 'split.ini', '--SPLIT_KEY',
            'SOMEKEY'
        ]
        Split.main()

        assert os.path.exists('split.ini_0')
        assert os.path.exists('split.ini_1')
Exemple #2
0
    def test4_split(self):
        sys.argv = ['--INPUT', 'forecho.ini', '--SPLIT', 'split.ini', '--SPLIT_KEY', 'COMMENT']
        Split.main()

        assert os.path.exists('split.ini_0')
        assert 'comm' in open('split.ini_0').read()
        assert not 'ent' in open('split.ini_0').read()

        assert os.path.exists('split.ini_1')
        assert not 'comm' in open('split.ini_1').read()
        assert 'ent' in open('split.ini_1').read()
    def test4_split(cls):
        """Test split."""
        sys.argv = ['--INPUT', 'forecho.ini', '--SPLIT', 'split.ini', '--SPLIT_KEY', 'COMMENT']
        Split.main()

        assert os.path.exists('split.ini_0')
        assert 'comm' in open('split.ini_0', 'r').read()
        assert not 'ent' in open('split.ini_0', 'r').read()

        assert os.path.exists('split.ini_1')
        assert not 'comm' in open('split.ini_1', 'r').read()
        assert 'ent' in open('split.ini_1', 'r').read()
Exemple #4
0
    def test3_split(self):
        sys.argv = ['--INPUT', 'input.ini', '--SPLIT', 'split.ini', '--SPLIT_KEY', 'SOMEKEY']
        Split.main()

        assert os.path.exists('split.ini_0')
        assert os.path.exists('split.ini_1')
Exemple #5
0
def generator(infile, unused_outfile):
    sys.argv = [
        '--INPUT', infile, '--SPLIT', 'split.ini', '--SPLIT_KEY',
        'DATASET_CODE'
    ]
    Split.main()
Exemple #6
0
def generator(infile, unused_outfile):
    sys.argv = ['--INPUT', infile, '--SPLIT', 'split.ini', '--SPLIT_KEY', 'DATASET_CODE']
    Split.main()
Exemple #7
0
def split_dataset(infile, unused_outfile):
    sys.argv = [
        '--INPUT', infile, '--SPLIT', 'split.ini', '--SPLIT_KEY', 'MZXML'
    ]
    Split.main()
Exemple #8
0
def split_dataset(infile, unused_outfile):
    sys.argv = ['--INPUT', infile, '--SPLIT', 'split.ini', '--SPLIT_KEY', 'MZXML']
    Split.main()