<commit_before>#------------------------------------------------------------------------------
# Copyright (c) 2014 The University of Manchester, UK.
#
# BSD Licenced. See LICENCE.rdoc for details.
#
# Taverna Player was developed in the BioVeL project, funded by the European
# Commission 7th Framework Programme (FP7), through grant agreement
# number 283359.
#
# Author: <NAME>
#------------------------------------------------------------------------------

require 'flexmock'
require 'test_helper'

class WorkerTest < ActiveSupport::TestCase
  include FlexMock::TestCase

  setup do<commit_msg>Set Taverna Server config in the tests for Travis.<commit_after>#------------------------------------------------------------------------------
# Copyright (c) 2014 The University of Manchester, UK.
#
# BSD Licenced. See LICENCE.rdoc for details.
#
# Taverna Player was developed in the BioVeL project, funded by the European
# Commission 7th Framework Programme (FP7), through grant agreement
# number 283359.
#
# Author: <NAME>
#------------------------------------------------------------------------------

require 'flexmock'
require 'test_helper'

class WorkerTest < ActiveSupport::TestCase
  include FlexMock::TestCase

  setup do
    # Taverna Server config that we need to set here for Travis, etc.
    TavernaPlayer.setup do |config|
      config.server_address = "http://localhost:1111/taverna"
      config.server_username = "taverna"
      config.server_password = "<PASSWORD>"
    end

{'fraction_non_alphanumeric': 0.27655310621242485, 'fraction_numerical': 0.018704074816299265, 'mean_word_length': 1.8210922787193973, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 6, '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': '4655679', 'n_tokens_mistral': 387, 'n_tokens_neox': 353, 'n_words': 129}