Issue 10 in pycopia: Example test case which uses database configuration?

16 views
Skip to first unread message

pyc...@googlecode.com

unread,
Jun 14, 2013, 3:15:48 PM6/14/13
to pyc...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 10 by tgood...@gmail.com: Example test case which uses database
configuration?
http://code.google.com/p/pycopia/issues/detail?id=10

What module are you referring to?
pycopia.QA
.db

What operating system?
Fedora 16, python 2.7.3

Please provide any additional information below.

I was wondering if you have any simple test cases/suites which can be used
as examples for the proper usage of the QA module? It would seem that a
lot of the pre-configuration relies on the back end db but it is difficult
to know the most correct way to populate it using the framework without
complementary documentation.

The two things I would ideally be looking for is
1) A few simple examples of how to populate and interact with the backend
db using the dbcli utility (or another recommended method) and,
2) An example of a test which utilizes dynamic config loading using the db.

I would really appreciate any help you can provide or suggestions you have.

Thanks so much Keith!

-Tyler

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

pyc...@googlecode.com

unread,
Apr 25, 2014, 6:42:30 PM4/25/14
to pyc...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 10 by keith.d...@gmail.com: Example test case which
Sorry about the delay. There is a new tool that might help, the dbedit
tool, and the dbconfig tool.

you also have to initialize the database. Of course, make sure postgres is
running first and is listening on localhost.

Make sure the file /etc/pycopia/database.conf has this:

DATABASE_URL = 'postgresql://pycopia@localhost/pycopia'
database = DATABASE_URL


Now just do:

python2.7 storage/init_db.py

That should create and initialize the database enough to begin.
Reply all
Reply to author
Forward
0 new messages