devtools/data/cwmock.js
author Denis Laxalde <denis.laxalde@logilab.fr>
Tue, 30 Jun 2015 23:17:45 +0200
changeset 10512 99bdd4bddd77
parent 5950 f84dba9b8eca
permissions -rw-r--r--
Add tox.ini file * Factor out `commands` for most environments using {envname} substitution to build pytest commande. * Positional arguments are passed on to `pytest` (others may also be passed after a `--`). * Set PATH env variable for tests requiring PostgreSQL. * Also added a `doc` target to build the book. Also update .hgignore exclude .tox directory (where virtualenvs will be created and cubicweb.egg-info created by sdist command). Closes #5447161.

/*
 * cubicweb js mock for unit tests
 * This module defines variables and functions used in quite a few places
 * in cw js framework that can't be used or guessed without a real CW server
 */

var pageid = 'my-page-id';

function _(message) {
    return message;
}