<commit_before>
import unittest
import nose
import nose.tools

from iatidataquality import app

class TestWeb(unittest.TestCase):
    def setUp(self):
        self.foo = 1
        self.app = app.test_client()

    def tearDown(self):
        pass

    @nose.with_setup(setUp, tearDown)
    def test1(self):
        rv = self.app.get('/organisations/GB-1/')
        print rv.data
        assert "Average score" in rv.data<commit_msg>Alter test_web - looks like no data is loaded so nothing shown?<commit_after>
import unittest
import nose
import nose.tools

from iatidataquality import app

class TestWeb(unittest.TestCase):
    def setUp(self):
        self.foo = 1
        self.app = app.test_client()

    def tearDown(self):
        pass

    @nose.with_setup(setUp, tearDown)
    def test1(self):
        rv = self.app.get('/organisations/GB-1/')
        print rv.data
        assert "Publication" in rv.data
{'fraction_non_alphanumeric': 0.09868421052631579, 'fraction_numerical': 0.006578947368421052, 'mean_word_length': 2.652, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3180692', 'n_tokens_mistral': 301, 'n_tokens_neox': 289, 'n_words': 78}