Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1984 Widoki

I am new to odoo. I am trying to test a custom module. But the test doesn't run.

Here is the file structure 


```
course_management
|-- ...
`-- tests
|-- __init__.py
|-- test_course_management_course.py
```


Here is the the content of test_course_management_course.py file 


from odoo.tests import common

```
from odoo.tests import common


class TestCourseManagement(common.TransactionCase):

def test_creation_end_date(self):
test_course = self.env['course.management.course'].create({
'name': 'TestProjectfromtestcase'
})
self.assertEqual(test_course.name, 'TestProject')

```


And the commands I have tried are as follows

```
./odoo-bin -c /home/bs632/odoo.conf -u course_management --test-enable -d testDB


./odoo-bin -c /home/bs632/odoo.conf --log-level=test -u course_management --test-enable -d testDB --test-report-directory=./testlog.


./odoo-bin -c /home/bs632/odoo.conf --log-level=test -u course_management --test-enable -d testDB


./odoo-bin -c /home/bs632/odoo.conf --log-level=test -i course_management --test-enable -d testDB
```

But the test doesn't run.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sie 21
4
3
maj 18
4757
0
cze 25
2726
2
sie 24
2482
1
mar 24
3086