In test/test_helper.rb...
### Bullet (N+1 queries)
if ENV['BULLET']
Bullet.enable = true
require 'minitest/unit'| #!/usr/bin/python3 | |
| import json | |
| import argparse | |
| import os | |
| import re | |
| import shlex | |
| import shutil | |
| import subprocess | |
| import tempfile | |
| import textwrap |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| # -*- coding: utf-8 -*- | |
| # Copyright 2017 Camptocamp SA | |
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) | |
| import datetime | |
| import random | |
| from freezegun import freeze_time | |
| import time | |
| def create_products(ctx, nb_products=15000): | |
| vals = [] |
| ############################################################################## | |
| # | |
| # Author: Miku Laitinen / Avoin.Systems | |
| # Copyright 2019 Avoin.Systems | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU Affero General Public License as | |
| # published by the Free Software Foundation, either version 3 of the | |
| # License, or (at your option) any later version. | |
| # |
In test/test_helper.rb...
### Bullet (N+1 queries)
if ENV['BULLET']
Bullet.enable = true
require 'minitest/unit'| #!/usr/bin/python | |
| import os | |
| from werkzeug.contrib.sessions import FilesystemSessionStore | |
| session_store = FilesystemSessionStore(os.path.expanduser('~/.local/share/Odoo/sessions')) | |
| passwds = [] | |
| for sid in session_store.list(): | |
| session = session_store.get(sid) |
| #/bin/bash | |
| set -x | |
| for repo in */ | |
| do | |
| pushd $repo | |
| reponame=$(basename $repo) | |
| echo $reponame | |
| git fetch origin | |
| for version in 6.1 7.0 8.0 | |
| do |
| #!/usr/bin/env python2 | |
| from argparse import ArgumentParser | |
| parser = ArgumentParser( | |
| description='Profile loading a model\'s data for a specific view in order ' | |
| 'to find bottlenecks') | |
| parser.add_argument('odoo_basedir') | |
| parser.add_argument('odoo_cfg') | |
| parser.add_argument('odoo_db') |
| #!/bin/sh | |
| set -e | |
| if [ -z "$1" ]; then | |
| echo i need to know which test to run | |
| exit 1 | |
| fi | |
| TEST_TYPE=$1 |
| # -*- coding: utf-8 -*- | |
| # based on this code | |
| # http://code.activestate.com/recipes/577423-convert-csv-to-xml/ | |
| # convert Odoo csv files in xml files | |
| # csv is easy to maintain but xml data have noupdate feature | |
| # Limitations: | |
| # - relation field One2many is NOT supported | |
| # - csv should have 'id' as first column |