Changeset 184

Show
Ignore:
Timestamp:
08/27/08 17:04:00 (3 months ago)
Author:
rgrp
Message:

[data][s]: move microfacts/tests/data to microfacts/data so data can be used running tests/init.py (which overrides config setup!).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/microfacts/lib/cli.py

    r147 r184  
    6868        import microfacts.model as model 
    6969        import microfacts.lib.json 
    70         data = pkg_resources.resource_stream('microfacts.tests', 
     70        data = pkg_resources.resource_stream('microfacts', 
    7171                'data/bloomsbury.js') 
    7272        out = microfacts.lib.json.load(data) 
  • trunk/microfacts/tests/functional/test_factlet.py

    r170 r184  
    1010        import pkg_resources 
    1111        sample = pkg_resources.resource_stream( 
    12             'microfacts.tests', 'data/napoleon.js' 
     12            'microfacts', 'data/napoleon.js' 
    1313        ) 
    1414        out = microfacts.lib.json.load(sample) 
  • trunk/microfacts/tests/functional/test_thread.py

    r174 r184  
    1010        import pkg_resources 
    1111        sample = pkg_resources.resource_stream( 
    12             'microfacts.tests', 'data/napoleon2.js' 
     12            'microfacts', 'data/napoleon2.js' 
    1313        ) 
    1414        out = microfacts.lib.json.load(sample) 
  • trunk/microfacts/tests/test_json.py

    r178 r184  
    9999        model.Session.clear() 
    100100        model.Session.begin() 
    101         self.data = pkg_resources.resource_stream('microfacts.tests', 'data/napoleon.js') 
     101        self.data = pkg_resources.resource_stream('microfacts', 'data/napoleon.js') 
    102102        self.converter = json.FactletConverter() 
    103103 
     
    123123        model.Session.clear() 
    124124        model.Session.begin() 
    125         self.data = pkg_resources.resource_stream('microfacts.tests', 
     125        self.data = pkg_resources.resource_stream('microfacts', 
    126126                'data/napoleon2.js') 
    127127        self.converter = json.ThreadConverter()