~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
= Sample data setup =

# XXX: StevenK 2010-07-13 bug=617164: Calling utility scripts is bad

In order to run Soyuz locally on a development system, the sample data
must be cleaned up and customized a bit.  This is done by a the script
utilities/soyuz-sampledata-setup.py.

We only need this script for the playground sample data, so there's
little point in inspecting what it does to the test database in detail.

    >>> from lp.testing.script import run_script

    >>> return_code, output, error = run_script(
    ...     'utilities/soyuz-sampledata-setup.py')

    >>> print return_code
    0

    >>> print error
    INFO ...
    INFO Done.

    >>> from canonical.testing.layers import DatabaseLayer
    >>> DatabaseLayer.force_dirty_database()