Skip to content
Open
17 changes: 9 additions & 8 deletions wiki/BioSQL.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,20 @@ Running the unit tests
----------------------

Because there are so many ways you could have setup your BioSQL
database, you have to tell the unit test a few bits of information by
editing the file Tests/setup\_BioSQL.py and filling in the following
database, you have to tell the unit test a few bits of information.
If you installed biopython using pip then the relevant [**Tests**](https://github.com/biopython/biopython/tree/master/Tests)
folder would not have been copied. If this is the case one can
perform check out (or export) using:

```bash
svn export https://github.com/biopython/biopython/trunk/Tests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't recommend using svn here. If you want to avoid needing git, we can just download a tar-ball or zip file from GitHub using e.g.

wget https://github.com/biopython/biopython/archive/biopython-172.zip
unzip biopython-172.zip

Or,

wget https://github.com/biopython/biopython/archive/biopython-172.tar.gz
tar -zxvf biopython-172.tar.gz

Also this lets us recommend getting the tests to match the version of Biopython installed, which should prevent test failures from a version mis-match (although that would be rare with BioSQL as this code is fairly static these days).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, please avoid svn export and use git or a plain download from GitHub.

```
Inside *Tests*, copy the file *biosql.ini.sample* to *biosql.ini* and edit it by filling in the following
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use double-backtickes, Tests, biosql.ini.sample and biosql.ini - not single asterisk for italics.

fields:

``` python
DBDRIVER = 'MySQLdb'
DBTYPE = 'mysql'
```

and a little lower down,

``` python
DBHOST = 'localhost'
DBUSER = 'root'
DBPASSWD = ''
TESTDB = 'biosql_test'
Expand Down