Move test_credentials.js into casper_tests/.

This commit is contained in:
Tim Abbott 2015-10-13 18:01:09 -04:00
parent 2294063361
commit 01f0d362d9
4 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View File

@ -13,7 +13,6 @@ stats/
zerver/fixtures/available-migrations zerver/fixtures/available-migrations
zerver/fixtures/migration-status zerver/fixtures/migration-status
zerver/fixtures/test_data1.json zerver/fixtures/test_data1.json
frontend_tests/test_credentials.js
.kdev4 .kdev4
zulip.kdev4 zulip.kdev4
memcached_prefix memcached_prefix

View File

@ -1 +1,2 @@
/server.log /server.log
/test_credentials.js

View File

@ -1,5 +1,5 @@
var common = require('../common.js').common; var common = require('../common.js').common;
var test_credentials = require('../test_credentials.js').test_credentials; var test_credentials = require('./test_credentials.js').test_credentials;
common.start_and_log_in(); common.start_and_log_in();

View File

@ -5,7 +5,7 @@ cd "$(dirname "$0")"/..
email=iago@zulip.com email=iago@zulip.com
password=$(python manage.py print_initial_password "$email" | fgrep "$email" | awk '{ print $2 }') password=$(python manage.py print_initial_password "$email" | fgrep "$email" | awk '{ print $2 }')
cat > frontend_tests/test_credentials.js <<EOF cat > frontend_tests/casper_tests/test_credentials.js <<EOF
// Generated by tools/generate-test-credentials // Generated by tools/generate-test-credentials
var test_credentials = {default_user: {username: 'iago@zulip.com', password: '$password'}}; var test_credentials = {default_user: {username: 'iago@zulip.com', password: '$password'}};
try { exports.test_credentials = test_credentials; } catch (e) {} try { exports.test_credentials = test_credentials; } catch (e) {}