Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4281 Zobrazení

I am trying to run a single unit test. There is no evidence the test is executing in the server log or to stdout. The server remains running, waiting to server connections. I would expect that it would run my test and stop.

./openerp-server.py --test-file=/path/to/test/sales_payment.yml

Avatar
Zrušit
Autor Nejlepší odpověď

I see my error. A few arguments are not optional.

  • Needed to su to the openerp user to connect to the db. This is how I did it.

sudo su - openerp -s /bin/bash

  • Must specify -d <db>
  • Must specify all necessary addon paths in order to load your environment
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 15
6812
1
led 23
4023
0
říj 22
1582
0
srp 22
3
0
pro 21
51