<commit_before>"""Tests for neurodocker.interfaces.FSL"""
# Author: <NAME> <<EMAIL>>
from __future__ import absolute_import, division, print_function

import pytest

from neurodocker.interfaces import FSL
from neurodocker.interfaces.tests import utils

class TestFSL(object):
    """Tests for FSL class."""

    @pytest.mark.skip(reason="python installer raises KeyError")
    def test_build_image_fsl_latest_pyinstaller_centos7(self):
        """Install latest FSL with FSL's Python installer on CentOS 7."""
        specs = {'pkg_manager': 'yum',
                 'check_urls': True,
                 'instructions': [
                    ('base', 'centos:7'),
                    ('fsl', {'version': '5.0.10', 'use_binaries': True}),
                    ('user', 'neuro'),
                 ]}
        container = utils.get_container_from_specs(specs)
        output = container.exec_run('bet')
        assert "error" not in output, "error running bet"
        utils.test_cleanup(container)

    def test_build_image_fsl_5010_binaries_stretch(self):
        """Install FSL binaries on Debian Stretch."""
        specs = {'pkg_manager': 'apt',
                 'check_urls': True,
                 'instructions': [
                    ('base', 'debian:stretch'),
                    ('fsl', {'version': '5.0.10', 'use_binaries': True})
                 ]}
        container = utils.get_container_from_specs(specs)
        output = container.exec_run('bet')
        assert "error" not in output, "error running bet"
        utils.test_cleanup(container)<commit_msg>revert to fsl 5.0.9 to avoid running out of space in travis ci<commit_after>"""Tests for neurodocker.interfaces.FSL"""
# Author: <NAME> <<EMAIL>>
from __future__ import absolute_import, division, print_function

import pytest

from neurodocker.interfaces import FSL
from neurodocker.interfaces.tests import utils

class TestFSL(object):
    """Tests for FSL class."""

    @pytest.mark.skip(reason="python installer raises KeyError")
    def test_build_image_fsl_latest_pyinstaller_centos7(self):
        """Install latest FSL with FSL's Python installer on CentOS 7."""
        specs = {'pkg_manager': 'yum',
                 'check_urls': True,
                 'instructions': [
                    ('base', 'centos:7'),
                    ('fsl', {'version': '5.0.10', 'use_binaries': True}),
                    ('user', 'neuro'),
                 ]}
        container = utils.get_container_from_specs(specs)
        output = container.exec_run('bet')
        assert "error" not in output, "error running bet"
        utils.test_cleanup(container)

    def test_build_image_fsl_509_binaries_stretch(self):
        """Install FSL binaries on Debian Stretch."""
        specs = {'pkg_manager': 'apt',
                 'check_urls': True,
                 'instructions': [
                    ('base', 'debian:stretch'),
                    ('fsl', {'version': '5.0.9', 'use_binaries': True})
                 ]}
        container = utils.get_container_from_specs(specs)
        output = container.exec_run('bet')
        assert "error" not in output, "error running bet"
        utils.test_cleanup(container)
{'fraction_non_alphanumeric': 0.12519660270525323, 'fraction_numerical': 0.009751494180559924, 'mean_word_length': 2.437837837837838, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5437608', 'n_tokens_mistral': 947, 'n_tokens_neox': 911, 'n_words': 223}