Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4369 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
6909
1
thg 1 23
4152
0
thg 10 22
1676
0
thg 8 22
3
0
thg 12 21
51