remcoboerma / jbrout

Automatically exported from code.google.com/p/jbrout
0 stars 0 forks source link

unit tests need to be run from manatlan's machine? #190

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. `cd unittests`
2. `python runtests.py`
3.

What is the expected output? What do you see instead?
Expected output should be something about how the unit tests completed 
successfully.

Instead I see this:
(cut)
...
--- Tests tests_dbtags.py
Traceback (most recent call last):
  File "runtests.py", line 29, in <module>
    execfile( "../unittests/"+i )
  File "../unittests/tests_dbtags.py", line 62, in <module>
    dbt.save()
  File "/home/conrad/data/documents/projects/photos/jbrout-read-only/jbrout/jbrout/db.py", line 962, in save
    fid = open(self.file,"w")
IOError: [Errno 2] No such file or directory: 
'/home/manatlan/db_jbrout_tags.xml'

Since it's looking for '/home/manatlan/db_jbrout_tags.xml', the success of the 
test is based on the developer's environment.  Unit tests should be able to 
succeed without being run from a specific developer's machine.

Original issue reported on code.google.com by conrad.p...@gmail.com on 24 Aug 2011 at 1:16

GoogleCodeExporter commented 9 years ago

Original comment by matej.c...@gmail.com on 12 Aug 2013 at 10:27