Skip to content

Instantly share code, notes, and snippets.

@nschonni nschonni/report.html
Created Apr 13, 2017

Embed
What would you like to do?
Ran the translate pytest --cov=. --html=report.html -r EfsxX
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Test Report</title>
<link href="assets/style.css" rel="stylesheet" type="text/css"/></head>
<body onLoad="init()">
<script>/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
function toArray(iter) {
if (iter === null) {
return null;
}
return Array.prototype.slice.call(iter);
}
function find(selector, elem) {
if (!elem) {
elem = document;
}
return elem.querySelector(selector);
}
function find_all(selector, elem) {
if (!elem) {
elem = document;
}
return toArray(elem.querySelectorAll(selector));
}
function sort_column(elem) {
toggle_sort_states(elem);
var colIndex = toArray(elem.parentNode.childNodes).indexOf(elem);
var key;
if (elem.classList.contains('numeric')) {
key = key_num;
} else if (elem.classList.contains('result')) {
key = key_result;
} else {
key = key_alpha;
}
sort_table(elem, key(colIndex));
}
function show_all_extras() {
find_all('.col-result').forEach(show_extras);
}
function hide_all_extras() {
find_all('.col-result').forEach(hide_extras);
}
function show_extras(colresult_elem) {
var extras = colresult_elem.parentNode.nextElementSibling;
var expandcollapse = colresult_elem.firstElementChild;
extras.classList.remove("collapsed");
expandcollapse.classList.remove("expander");
expandcollapse.classList.add("collapser");
}
function hide_extras(colresult_elem) {
var extras = colresult_elem.parentNode.nextElementSibling;
var expandcollapse = colresult_elem.firstElementChild;
extras.classList.add("collapsed");
expandcollapse.classList.remove("collapser");
expandcollapse.classList.add("expander");
}
function show_filters() {
var filter_items = document.getElementsByClassName('filter');
for (var i = 0; i < filter_items.length; i++)
filter_items[i].hidden = false;
}
function add_collapse() {
// Add links for show/hide all
var resulttable = find('table#results-table');
var showhideall = document.createElement("p");
showhideall.innerHTML = '<a href="javascript:show_all_extras()">Show all details</a> / ' +
'<a href="javascript:hide_all_extras()">Hide all details</a>';
resulttable.parentElement.insertBefore(showhideall, resulttable);
// Add show/hide link to each result
find_all('.col-result').forEach(function(elem) {
var extras = elem.parentNode.nextElementSibling;
var expandcollapse = document.createElement("span");
if (elem.innerHTML === 'Passed') {
extras.classList.add("collapsed");
expandcollapse.classList.add("expander");
} else {
expandcollapse.classList.add("collapser");
}
elem.appendChild(expandcollapse);
elem.addEventListener("click", function(event) {
if (event.currentTarget.parentNode.nextElementSibling.classList.contains("collapsed")) {
show_extras(event.currentTarget);
} else {
hide_extras(event.currentTarget);
}
});
})
}
function init () {
reset_sort_headers();
add_collapse();
show_filters();
toggle_sort_states(find('.initial-sort'));
find_all('.sortable').forEach(function(elem) {
elem.addEventListener("click",
function(event) {
sort_column(elem);
}, false)
});
};
function sort_table(clicked, key_func) {
var rows = find_all('.results-table-row');
var reversed = !clicked.classList.contains('asc');
var sorted_rows = sort(rows, key_func, reversed);
/* Whole table is removed here because browsers acts much slower
* when appending existing elements.
*/
var thead = document.getElementById("results-table-head");
document.getElementById('results-table').remove();
var parent = document.createElement("table");
parent.id = "results-table";
parent.appendChild(thead);
sorted_rows.forEach(function(elem) {
parent.appendChild(elem);
});
document.getElementsByTagName("BODY")[0].appendChild(parent);
}
function sort(items, key_func, reversed) {
var sort_array = items.map(function(item, i) {
return [key_func(item), i];
});
var multiplier = reversed ? -1 : 1;
sort_array.sort(function(a, b) {
var key_a = a[0];
var key_b = b[0];
return multiplier * (key_a >= key_b ? 1 : -1);
});
return sort_array.map(function(item) {
var index = item[1];
return items[index];
});
}
function key_alpha(col_index) {
return function(elem) {
return elem.childNodes[1].childNodes[col_index].firstChild.data.toLowerCase();
};
}
function key_num(col_index) {
return function(elem) {
return parseFloat(elem.childNodes[1].childNodes[col_index].firstChild.data);
};
}
function key_result(col_index) {
return function(elem) {
var strings = ['Error', 'Failed', 'Rerun', 'XFailed', 'XPassed',
'Skipped', 'Passed'];
return strings.indexOf(elem.childNodes[1].childNodes[col_index].firstChild.data);
};
}
function reset_sort_headers() {
find_all('.sort-icon').forEach(function(elem) {
elem.parentNode.removeChild(elem);
});
find_all('.sortable').forEach(function(elem) {
var icon = document.createElement("div");
icon.className = "sort-icon";
icon.textContent = "vvv";
elem.insertBefore(icon, elem.firstChild);
elem.classList.remove("desc", "active");
elem.classList.add("asc", "inactive");
});
}
function toggle_sort_states(elem) {
//if active, toggle between asc and desc
if (elem.classList.contains('active')) {
elem.classList.toggle('asc');
elem.classList.toggle('desc');
}
//if inactive, reset all other functions and add ascending active
if (elem.classList.contains('inactive')) {
reset_sort_headers();
elem.classList.remove('inactive');
elem.classList.add('active');
}
}
function is_all_rows_hidden(value) {
return value.hidden == false;
}
function filter_table(elem) {
var outcome_att = "data-test-result";
var outcome = elem.getAttribute(outcome_att);
class_outcome = outcome + " results-table-row";
var outcome_rows = document.getElementsByClassName(class_outcome);
for(var i = 0; i < outcome_rows.length; i++){
outcome_rows[i].hidden = !elem.checked;
}
var rows = find_all('.results-table-row').filter(is_all_rows_hidden);
var all_rows_hidden = rows.length == 0 ? true : false;
var not_found_message = document.getElementById("not-found-message");
not_found_message.hidden = !all_rows_hidden;
}
</script>
<p>Report generated on 13-Apr-2017 at 14:59:53 by<a href="https://pypi.python.org/pypi/pytest-html"> pytest-html</a> v1.14.2</p>
<h2>Environment</h2>
<table id="environment">
<tr>
<td>Packages</td>
<td>{&apos;py&apos;: &apos;1.4.32&apos;, &apos;pytest&apos;: &apos;3.0.7&apos;, &apos;pluggy&apos;: &apos;0.4.0&apos;}</td></tr>
<tr>
<td>Platform</td>
<td>Windows-7-6.1.7601-SP1</td></tr>
<tr>
<td>Plugins</td>
<td>{&apos;catchlog&apos;: &apos;1.2.2&apos;, &apos;html&apos;: &apos;1.14.2&apos;, &apos;xdist&apos;: &apos;1.15.0&apos;, &apos;cov&apos;: &apos;2.4.0&apos;, &apos;metadata&apos;: &apos;1.3.0&apos;}</td></tr>
<tr>
<td>Python</td>
<td>2.7.13</td></tr></table>
<h2>Summary</h2>
<p>2239 tests ran in 36.97 seconds. </p>
<p class="filter" hidden="true">(Un)check the boxes to filter the results.</p><input checked="true" class="filter" data-test-result="passed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="passed">2134 passed</span>, <input checked="true" class="filter" data-test-result="skipped" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="skipped">13 skipped</span>, <input checked="true" class="filter" data-test-result="failed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="failed">54 failed</span>, <input checked="true" class="filter" data-test-result="error" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="error">10 errors</span>, <input checked="true" class="filter" data-test-result="xfailed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xfailed">46 expected failures</span>, <input checked="true" class="filter" data-test-result="xpassed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xpassed">5 unexpected passes</span>
<h2>Results</h2>
<table id="results-table">
<thead id="results-table-head">
<tr>
<th class="sortable result initial-sort" col="result">Result</th>
<th class="sortable" col="name">Test</th>
<th class="sortable numeric" col="duration">Duration</th>
<th>Links</th></tr>
<tr hidden="true" id="not-found-message">
<th colspan="4">No results found. Try to check the filters</th></tr></thead>
<tbody class="error results-table-row">
<tr>
<td class="col-result">Error</td>
<td class="col-name">translate/storage/test_statsdb.py::TestStatsDb::()::test_getfileid_recache_cached_unit::teardown</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_statsdb.TestStatsDb instance at 0x00000000045418C8&gt;<br/>method = &lt;bound method TestStatsDb.test_getfileid_recache_cached_unit of &lt;translate.storage.test_statsdb.TestStatsDb instance at 0x00000000045418C8&gt;&gt;<br/><br/> def teardown_method(self, method):<br/> """Makes sure that if self.filename was created by the method, it is cleaned up"""<br/>&gt; self.remove_dirs(self.path)<br/><br/>..\..\translate\storage\test_statsdb.py:92: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\storage\test_statsdb.py:79: in remove_dirs<br/> shutil.rmtree(path)<br/>c:\python27\lib\shutil.py:252: in rmtree<br/> onerror(os.remove, fullname, sys.exc_info())<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>path = 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestStatsDb_test_getfileid_recache_cached_unit'<br/>ignore_errors = False, onerror = &lt;function onerror at 0x0000000008EAF0B8&gt;<br/><br/> def rmtree(path, ignore_errors=False, onerror=None):<br/> """Recursively delete a directory tree.<br/> <br/> If ignore_errors is set, errors are ignored; otherwise, if onerror<br/> is set, it is called to handle the error with arguments (func,<br/> path, exc_info) where func is os.listdir, os.remove, or os.rmdir;<br/> path is the argument to that function that caused it to fail; and<br/> exc_info is a tuple returned by sys.exc_info(). If ignore_errors<br/> is false and onerror is None, an exception is raised.<br/> <br/> """<br/> if ignore_errors:<br/> def onerror(*args):<br/> pass<br/> elif onerror is None:<br/> def onerror(*args):<br/> raise<br/> try:<br/> if os.path.islink(path):<br/> # symlinks to directories are forbidden, see bug #1669<br/> raise OSError("Cannot call rmtree on a symbolic link")<br/> except OSError:<br/> onerror(os.path.islink, path, sys.exc_info())<br/> # can't continue even if onerror hook returns<br/> return<br/> names = []<br/> try:<br/> names = os.listdir(path)<br/> except os.error, err:<br/> onerror(os.listdir, path, sys.exc_info())<br/> for name in names:<br/> fullname = os.path.join(path, name)<br/> try:<br/> mode = os.lstat(fullname).st_mode<br/> except os.error:<br/> mode = 0<br/> if stat.S_ISDIR(mode):<br/> rmtree(fullname, ignore_errors, onerror)<br/> else:<br/> try:<br/>&gt; os.remove(fullname)<br/><span class="error">E WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestStatsDb_test_getfileid_recache_cached_unit\\stats.db'</span><br/><br/>c:\python27\lib\shutil.py:250: WindowsError<br/></div></td></tr></tbody>
<tbody class="error results-table-row">
<tr>
<td class="col-result">Error</td>
<td class="col-name">translate/storage/test_statsdb.py::TestStatsDb::()::test_unitstats::teardown</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_statsdb.TestStatsDb instance at 0x0000000008D44AC8&gt;<br/>method = &lt;bound method TestStatsDb.test_unitstats of &lt;translate.storage.test_statsdb.TestStatsDb instance at 0x0000000008D44AC8&gt;&gt;<br/><br/> def teardown_method(self, method):<br/> """Makes sure that if self.filename was created by the method, it is cleaned up"""<br/>&gt; self.remove_dirs(self.path)<br/><br/>..\..\translate\storage\test_statsdb.py:92: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\storage\test_statsdb.py:79: in remove_dirs<br/> shutil.rmtree(path)<br/>c:\python27\lib\shutil.py:252: in rmtree<br/> onerror(os.remove, fullname, sys.exc_info())<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>path = 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestStatsDb_test_unitstats'<br/>ignore_errors = False, onerror = &lt;function onerror at 0x000000000901CF98&gt;<br/><br/> def rmtree(path, ignore_errors=False, onerror=None):<br/> """Recursively delete a directory tree.<br/> <br/> If ignore_errors is set, errors are ignored; otherwise, if onerror<br/> is set, it is called to handle the error with arguments (func,<br/> path, exc_info) where func is os.listdir, os.remove, or os.rmdir;<br/> path is the argument to that function that caused it to fail; and<br/> exc_info is a tuple returned by sys.exc_info(). If ignore_errors<br/> is false and onerror is None, an exception is raised.<br/> <br/> """<br/> if ignore_errors:<br/> def onerror(*args):<br/> pass<br/> elif onerror is None:<br/> def onerror(*args):<br/> raise<br/> try:<br/> if os.path.islink(path):<br/> # symlinks to directories are forbidden, see bug #1669<br/> raise OSError("Cannot call rmtree on a symbolic link")<br/> except OSError:<br/> onerror(os.path.islink, path, sys.exc_info())<br/> # can't continue even if onerror hook returns<br/> return<br/> names = []<br/> try:<br/> names = os.listdir(path)<br/> except os.error, err:<br/> onerror(os.listdir, path, sys.exc_info())<br/> for name in names:<br/> fullname = os.path.join(path, name)<br/> try:<br/> mode = os.lstat(fullname).st_mode<br/> except os.error:<br/> mode = 0<br/> if stat.S_ISDIR(mode):<br/> rmtree(fullname, ignore_errors, onerror)<br/> else:<br/> try:<br/>&gt; os.remove(fullname)<br/><span class="error">E WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestStatsDb_test_unitstats\\stats.db'</span><br/><br/>c:\python27\lib\shutil.py:250: WindowsError<br/></div></td></tr></tbody>
<tbody class="error results-table-row">
<tr>
<td class="col-result">Error</td>
<td class="col-name">translate/storage/test_statsdb.py::TestStatsDb::()::test_filestats::teardown</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_statsdb.TestStatsDb instance at 0x000000000907E108&gt;<br/>method = &lt;bound method TestStatsDb.test_filestats of &lt;translate.storage.test_statsdb.TestStatsDb instance at 0x000000000907E108&gt;&gt;<br/><br/> def teardown_method(self, method):<br/> """Makes sure that if self.filename was created by the method, it is cleaned up"""<br/>&gt; self.remove_dirs(self.path)<br/><br/>..\..\translate\storage\test_statsdb.py:92: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\storage\test_statsdb.py:79: in remove_dirs<br/> shutil.rmtree(path)<br/>c:\python27\lib\shutil.py:252: in rmtree<br/> onerror(os.remove, fullname, sys.exc_info())<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>path = 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestStatsDb_test_filestats'<br/>ignore_errors = False, onerror = &lt;function onerror at 0x0000000008F615F8&gt;<br/><br/> def rmtree(path, ignore_errors=False, onerror=None):<br/> """Recursively delete a directory tree.<br/> <br/> If ignore_errors is set, errors are ignored; otherwise, if onerror<br/> is set, it is called to handle the error with arguments (func,<br/> path, exc_info) where func is os.listdir, os.remove, or os.rmdir;<br/> path is the argument to that function that caused it to fail; and<br/> exc_info is a tuple returned by sys.exc_info(). If ignore_errors<br/> is false and onerror is None, an exception is raised.<br/> <br/> """<br/> if ignore_errors:<br/> def onerror(*args):<br/> pass<br/> elif onerror is None:<br/> def onerror(*args):<br/> raise<br/> try:<br/> if os.path.islink(path):<br/> # symlinks to directories are forbidden, see bug #1669<br/> raise OSError("Cannot call rmtree on a symbolic link")<br/> except OSError:<br/> onerror(os.path.islink, path, sys.exc_info())<br/> # can't continue even if onerror hook returns<br/> return<br/> names = []<br/> try:<br/> names = os.listdir(path)<br/> except os.error, err:<br/> onerror(os.listdir, path, sys.exc_info())<br/> for name in names:<br/> fullname = os.path.join(path, name)<br/> try:<br/> mode = os.lstat(fullname).st_mode<br/> except os.error:<br/> mode = 0<br/> if stat.S_ISDIR(mode):<br/> rmtree(fullname, ignore_errors, onerror)<br/> else:<br/> try:<br/>&gt; os.remove(fullname)<br/><span class="error">E WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestStatsDb_test_filestats\\stats.db'</span><br/><br/>c:\python27\lib\shutil.py:250: WindowsError<br/></div></td></tr></tbody>
<tbody class="error results-table-row">
<tr>
<td class="col-result">Error</td>
<td class="col-name">translate/storage/test_statsdb.py::TestStatsDb::()::test_if_cached_after_filestats::teardown</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_statsdb.TestStatsDb instance at 0x0000000005C8EF88&gt;<br/>method = &lt;bound method TestStatsDb.test_if_cached_after_filestats of &lt;translate.storage.test_statsdb.TestStatsDb instance at 0x0000000005C8EF88&gt;&gt;<br/><br/> def teardown_method(self, method):<br/> """Makes sure that if self.filename was created by the method, it is cleaned up"""<br/>&gt; self.remove_dirs(self.path)<br/><br/>..\..\translate\storage\test_statsdb.py:92: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\storage\test_statsdb.py:79: in remove_dirs<br/> shutil.rmtree(path)<br/>c:\python27\lib\shutil.py:252: in rmtree<br/> onerror(os.remove, fullname, sys.exc_info())<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>path = 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestStatsDb_test_if_cached_after_filestats'<br/>ignore_errors = False, onerror = &lt;function onerror at 0x0000000008F61C18&gt;<br/><br/> def rmtree(path, ignore_errors=False, onerror=None):<br/> """Recursively delete a directory tree.<br/> <br/> If ignore_errors is set, errors are ignored; otherwise, if onerror<br/> is set, it is called to handle the error with arguments (func,<br/> path, exc_info) where func is os.listdir, os.remove, or os.rmdir;<br/> path is the argument to that function that caused it to fail; and<br/> exc_info is a tuple returned by sys.exc_info(). If ignore_errors<br/> is false and onerror is None, an exception is raised.<br/> <br/> """<br/> if ignore_errors:<br/> def onerror(*args):<br/> pass<br/> elif onerror is None:<br/> def onerror(*args):<br/> raise<br/> try:<br/> if os.path.islink(path):<br/> # symlinks to directories are forbidden, see bug #1669<br/> raise OSError("Cannot call rmtree on a symbolic link")<br/> except OSError:<br/> onerror(os.path.islink, path, sys.exc_info())<br/> # can't continue even if onerror hook returns<br/> return<br/> names = []<br/> try:<br/> names = os.listdir(path)<br/> except os.error, err:<br/> onerror(os.listdir, path, sys.exc_info())<br/> for name in names:<br/> fullname = os.path.join(path, name)<br/> try:<br/> mode = os.lstat(fullname).st_mode<br/> except os.error:<br/> mode = 0<br/> if stat.S_ISDIR(mode):<br/> rmtree(fullname, ignore_errors, onerror)<br/> else:<br/> try:<br/>&gt; os.remove(fullname)<br/><span class="error">E WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestStatsDb_test_if_cached_after_filestats\\stats.db'</span><br/><br/>c:\python27\lib\shutil.py:250: WindowsError<br/></div></td></tr></tbody>
<tbody class="error results-table-row">
<tr>
<td class="col-result">Error</td>
<td class="col-name">translate/storage/test_statsdb.py::TestStatsDb::()::test_if_cached_after_unitstats::teardown</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_statsdb.TestStatsDb instance at 0x0000000008EA2948&gt;<br/>method = &lt;bound method TestStatsDb.test_if_cached_after_unitstats of &lt;translate.storage.test_statsdb.TestStatsDb instance at 0x0000000008EA2948&gt;&gt;<br/><br/> def teardown_method(self, method):<br/> """Makes sure that if self.filename was created by the method, it is cleaned up"""<br/>&gt; self.remove_dirs(self.path)<br/><br/>..\..\translate\storage\test_statsdb.py:92: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\storage\test_statsdb.py:79: in remove_dirs<br/> shutil.rmtree(path)<br/>c:\python27\lib\shutil.py:252: in rmtree<br/> onerror(os.remove, fullname, sys.exc_info())<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>path = 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestStatsDb_test_if_cached_after_unitstats'<br/>ignore_errors = False, onerror = &lt;function onerror at 0x00000000090BF2E8&gt;<br/><br/> def rmtree(path, ignore_errors=False, onerror=None):<br/> """Recursively delete a directory tree.<br/> <br/> If ignore_errors is set, errors are ignored; otherwise, if onerror<br/> is set, it is called to handle the error with arguments (func,<br/> path, exc_info) where func is os.listdir, os.remove, or os.rmdir;<br/> path is the argument to that function that caused it to fail; and<br/> exc_info is a tuple returned by sys.exc_info(). If ignore_errors<br/> is false and onerror is None, an exception is raised.<br/> <br/> """<br/> if ignore_errors:<br/> def onerror(*args):<br/> pass<br/> elif onerror is None:<br/> def onerror(*args):<br/> raise<br/> try:<br/> if os.path.islink(path):<br/> # symlinks to directories are forbidden, see bug #1669<br/> raise OSError("Cannot call rmtree on a symbolic link")<br/> except OSError:<br/> onerror(os.path.islink, path, sys.exc_info())<br/> # can't continue even if onerror hook returns<br/> return<br/> names = []<br/> try:<br/> names = os.listdir(path)<br/> except os.error, err:<br/> onerror(os.listdir, path, sys.exc_info())<br/> for name in names:<br/> fullname = os.path.join(path, name)<br/> try:<br/> mode = os.lstat(fullname).st_mode<br/> except os.error:<br/> mode = 0<br/> if stat.S_ISDIR(mode):<br/> rmtree(fullname, ignore_errors, onerror)<br/> else:<br/> try:<br/>&gt; os.remove(fullname)<br/><span class="error">E WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestStatsDb_test_if_cached_after_unitstats\\stats.db'</span><br/><br/>c:\python27\lib\shutil.py:250: WindowsError<br/></div></td></tr></tbody>
<tbody class="error results-table-row">
<tr>
<td class="col-result">Error</td>
<td class="col-name">translate/storage/test_statsdb.py::TestStatsDb::()::test_singletonness::teardown</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_statsdb.TestStatsDb instance at 0x0000000009223688&gt;<br/>method = &lt;bound method TestStatsDb.test_singletonness of &lt;translate.storage.test_statsdb.TestStatsDb instance at 0x0000000009223688&gt;&gt;<br/><br/> def teardown_method(self, method):<br/> """Makes sure that if self.filename was created by the method, it is cleaned up"""<br/>&gt; self.remove_dirs(self.path)<br/><br/>..\..\translate\storage\test_statsdb.py:92: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\storage\test_statsdb.py:79: in remove_dirs<br/> shutil.rmtree(path)<br/>c:\python27\lib\shutil.py:252: in rmtree<br/> onerror(os.remove, fullname, sys.exc_info())<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>path = 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestStatsDb_test_singletonness'<br/>ignore_errors = False, onerror = &lt;function onerror at 0x0000000008F616D8&gt;<br/><br/> def rmtree(path, ignore_errors=False, onerror=None):<br/> """Recursively delete a directory tree.<br/> <br/> If ignore_errors is set, errors are ignored; otherwise, if onerror<br/> is set, it is called to handle the error with arguments (func,<br/> path, exc_info) where func is os.listdir, os.remove, or os.rmdir;<br/> path is the argument to that function that caused it to fail; and<br/> exc_info is a tuple returned by sys.exc_info(). If ignore_errors<br/> is false and onerror is None, an exception is raised.<br/> <br/> """<br/> if ignore_errors:<br/> def onerror(*args):<br/> pass<br/> elif onerror is None:<br/> def onerror(*args):<br/> raise<br/> try:<br/> if os.path.islink(path):<br/> # symlinks to directories are forbidden, see bug #1669<br/> raise OSError("Cannot call rmtree on a symbolic link")<br/> except OSError:<br/> onerror(os.path.islink, path, sys.exc_info())<br/> # can't continue even if onerror hook returns<br/> return<br/> names = []<br/> try:<br/> names = os.listdir(path)<br/> except os.error, err:<br/> onerror(os.listdir, path, sys.exc_info())<br/> for name in names:<br/> fullname = os.path.join(path, name)<br/> try:<br/> mode = os.lstat(fullname).st_mode<br/> except os.error:<br/> mode = 0<br/> if stat.S_ISDIR(mode):<br/> rmtree(fullname, ignore_errors, onerror)<br/> else:<br/> try:<br/>&gt; os.remove(fullname)<br/><span class="error">E WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestStatsDb_test_singletonness\\stats.db'</span><br/><br/>c:\python27\lib\shutil.py:250: WindowsError<br/></div></td></tr></tbody>
<tbody class="error results-table-row">
<tr>
<td class="col-result">Error</td>
<td class="col-name">translate/storage/test_zip.py::TestZIPFile::()::test_created::teardown</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_zip.TestZIPFile object at 0x000000000956C128&gt;<br/>method = &lt;bound method TestZIPFile.test_created of &lt;translate.storage.test_zip.TestZIPFile object at 0x000000000956C128&gt;&gt;<br/><br/> def teardown_method(self, method):<br/> """removes the attributes set up by setup_method"""<br/>&gt; self.cleardir(self.testzip)<br/><br/>..\..\translate\storage\test_zip.py:22: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.test_zip.TestZIPFile object at 0x000000000956C128&gt;<br/>dirname = 'TestZIPFile_testzip.zip'<br/><br/> def cleardir(self, dirname):<br/> """removes the given directory"""<br/> if os.path.exists(self.testzip):<br/>&gt; os.remove(self.testzip)<br/><span class="error">E WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'TestZIPFile_testzip.zip'</span><br/><br/>..\..\translate\storage\test_zip.py:27: WindowsError<br/>---------------------------- Captured stdout setup -----------------------------<br/>setup_method called on TestZIPFile
----------------------------- Captured stdout call -----------------------------<br/>TestZIPFile_testzip.zip
</div></td></tr></tbody>
<tbody class="error results-table-row">
<tr>
<td class="col-result">Error</td>
<td class="col-name">translate/storage/test_zip.py::TestZIPFile::()::test_basic::setup</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_zip.TestZIPFile object at 0x0000000009582EB8&gt;<br/>method = &lt;bound method TestZIPFile.test_basic of &lt;translate.storage.test_zip.TestZIPFile object at 0x0000000009582EB8&gt;&gt;<br/><br/> def setup_method(self, method):<br/> """sets up a test directory"""<br/> print("setup_method called on", self.__class__.__name__)<br/> self.testzip = "%s_testzip.zip" % (self.__class__.__name__)<br/>&gt; self.cleardir(self.testzip)<br/><br/>..\..\translate\storage\test_zip.py:17: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.test_zip.TestZIPFile object at 0x0000000009582EB8&gt;<br/>dirname = 'TestZIPFile_testzip.zip'<br/><br/> def cleardir(self, dirname):<br/> """removes the given directory"""<br/> if os.path.exists(self.testzip):<br/>&gt; os.remove(self.testzip)<br/><span class="error">E WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'TestZIPFile_testzip.zip'</span><br/><br/>..\..\translate\storage\test_zip.py:27: WindowsError<br/>---------------------------- Captured stdout setup -----------------------------<br/>setup_method called on TestZIPFile
</div></td></tr></tbody>
<tbody class="error results-table-row">
<tr>
<td class="col-result">Error</td>
<td class="col-name">translate/storage/test_zip.py::TestZIPFile::()::test_structure::setup</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_zip.TestZIPFile object at 0x0000000009594FD0&gt;<br/>method = &lt;bound method TestZIPFile.test_structure of &lt;translate.storage.test_zip.TestZIPFile object at 0x0000000009594FD0&gt;&gt;<br/><br/> def setup_method(self, method):<br/> """sets up a test directory"""<br/> print("setup_method called on", self.__class__.__name__)<br/> self.testzip = "%s_testzip.zip" % (self.__class__.__name__)<br/>&gt; self.cleardir(self.testzip)<br/><br/>..\..\translate\storage\test_zip.py:17: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.test_zip.TestZIPFile object at 0x0000000009594FD0&gt;<br/>dirname = 'TestZIPFile_testzip.zip'<br/><br/> def cleardir(self, dirname):<br/> """removes the given directory"""<br/> if os.path.exists(self.testzip):<br/>&gt; os.remove(self.testzip)<br/><span class="error">E WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'TestZIPFile_testzip.zip'</span><br/><br/>..\..\translate\storage\test_zip.py:27: WindowsError<br/>---------------------------- Captured stdout setup -----------------------------<br/>setup_method called on TestZIPFile
</div></td></tr></tbody>
<tbody class="error results-table-row">
<tr>
<td class="col-result">Error</td>
<td class="col-name">translate/storage/test_zip.py::TestZIPFile::()::test_getunits::setup</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_zip.TestZIPFile object at 0x0000000009594F28&gt;<br/>method = &lt;bound method TestZIPFile.test_getunits of &lt;translate.storage.test_zip.TestZIPFile object at 0x0000000009594F28&gt;&gt;<br/><br/> def setup_method(self, method):<br/> """sets up a test directory"""<br/> print("setup_method called on", self.__class__.__name__)<br/> self.testzip = "%s_testzip.zip" % (self.__class__.__name__)<br/>&gt; self.cleardir(self.testzip)<br/><br/>..\..\translate\storage\test_zip.py:17: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.test_zip.TestZIPFile object at 0x0000000009594F28&gt;<br/>dirname = 'TestZIPFile_testzip.zip'<br/><br/> def cleardir(self, dirname):<br/> """removes the given directory"""<br/> if os.path.exists(self.testzip):<br/>&gt; os.remove(self.testzip)<br/><span class="error">E WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'TestZIPFile_testzip.zip'</span><br/><br/>..\..\translate\storage\test_zip.py:27: WindowsError<br/>---------------------------- Captured stdout setup -----------------------------<br/>setup_method called on TestZIPFile
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_convert.py::TestConvertCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_convert.TestConvertCommand object at 0x0000000006949400&gt;<br/><br/> def test_help(self):<br/> """tests getting help (returning the help_string so further tests can be done)"""<br/> stdout = sys.stdout<br/> helpfile = self.open_testfile("help.txt", "w")<br/> sys.stdout = helpfile<br/> try:<br/> pytest.raises(SystemExit, self.run_command, help=True)<br/> finally:<br/> sys.stdout = stdout<br/> helpfile.close()<br/> help_string = self.read_testfile("help.txt").decode('utf-8')<br/> print(help_string)<br/> convertsummary = self.convertmodule.__doc__.split("\n")[0]<br/> # the convertsummary might be wrapped. this will probably unwrap it<br/> assert convertsummary in help_string.replace("\n", " ")<br/> usageline = help_string[:help_string.find("\n")]<br/> # Different versions of optparse might contain either upper or<br/> # lowercase versions of 'Usage:' and 'Options:', so we need to take<br/> # that into account<br/> assert (usageline.startswith("Usage: ") or usageline.startswith("usage: ")) \<br/> and "[--version] [-h|--help]" in usageline<br/> options = help_string[help_string.find("ptions:\n"):]<br/> options = options[options.find("\n")+1:]<br/>&gt; options = self.help_check(options, "--progress=PROGRESS")<br/><br/>..\..\translate\convert\test_convert.py:123: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_convert.TestConvertCommand object at 0x0000000006949400&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp]
Handles converting of files between formats (used by :mod:`translate.convert`
tools).
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in
-S, --timestamp skip conversion if the output file has newer timestamp
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_csv2po.py::TestCSV2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_csv2po.TestCSV2POCommand object at 0x0000000006A59860&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_csv2po.py:133: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_csv2po.TestCSV2POCommand object at 0x0000000006A59860&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp] [-P|--pot]
Convert Comma-Separated Value (.csv) files to Gettext PO localization files.
See: http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/csv2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in csv format
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in po, pot, pot formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--charset=CHARSET set charset to decode from csv files
--columnorder=COLUMNORDER
specify the order and position of columns
(location,source,target)
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_dtd2po.py::TestDTD2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_dtd2po.TestDTD2POCommand object at 0x0000000006BDA6A0&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_dtd2po.py:372: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_dtd2po.TestDTD2POCommand object at 0x0000000006BDA6A0&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp] [-P|--pot]
Convert a Mozilla .dtd UTF-8 localization format to a Gettext PO localization
file. Uses the po and dtd modules, and the dtd2po convertor class which is in
this module You can convert back to .dtd using po2dtd.py.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in dtd format
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in dtd format
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_html2po.py::TestHTML2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_html2po.TestHTML2POCommand object at 0x0000000006BA6358&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_html2po.py:434: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_html2po.TestHTML2POCommand object at 0x0000000006BA6358&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp] [-P|--pot]
Convert HTML files to Gettext PO localization files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/html2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in htm, html, xhtml formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
-u, --untagged include untagged sections
--keepcomments preserve html comments as translation notes in the
output
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_json2po.py::TestJson2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_json2po.TestJson2POCommand object at 0x0000000006B59780&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_json2po.py:82: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_json2po.TestJson2POCommand object at 0x0000000006B59780&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp] [-P|--pot]
Convert JSON files to Gettext PO localization files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/json2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in json format
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in json format
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--filter=FILTER leaves to extract e.g. 'name,desc': (default: extract
everything)
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_l20n2po.py::TestL20n2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_l20n2po.TestL20n2POCommand object at 0x0000000006C95630&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_l20n2po.py:121: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_l20n2po.TestL20n2POCommand object at 0x0000000006C95630&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp] [-P|--pot]
Convert Mozilla .l20n files to Gettext PO localization files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/l20n2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in ftl, l20n formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in ftl, l20n formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_moz2po.py::TestMoz2POCommand::()::test_help</td>
<td class="col-duration">0.02</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_moz2po.TestMoz2POCommand object at 0x0000000006CA80B8&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_moz2po.py:15: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_moz2po.TestMoz2POCommand object at 0x0000000006CA80B8&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp] [-P|--pot]
Convert Mozilla .dtd and .properties files to Gettext PO localization files.
See: http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/moz2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in *, dtd, inc, ini, it, js, lang,
manifest, properties, rdf formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in *, dtd.po, dtd.pot, inc.po,
inc.pot, ini.po, ini.pot, it.po, it.pot, js, lang.po,
lang.pot, manifest, properties.po, properties.pot, rdf
formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in *, dtd, inc, ini, it, js, lang,
manifest, properties, rdf formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_mozlang2po.py::TestLang2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_mozlang2po.TestLang2POCommand object at 0x0000000006CAFFD0&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_mozlang2po.py:71: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_mozlang2po.TestLang2POCommand object at 0x0000000006CAFFD0&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp] [-P|--pot]
Convert Mozilla .lang files to Gettext PO localization files.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in lang format
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--encoding=ENCODING The encoding of the input file (default: UTF-8)
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_oo2po.py::TestOO2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_oo2po.TestOO2POCommand object at 0x0000000006CEF438&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_oo2po.py:180: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_oo2po.TestOO2POCommand object at 0x0000000006CEF438&gt;<br/><br/> def test_help(self):<br/> """tests getting help (returning the help_string so further tests can be done)"""<br/> stdout = sys.stdout<br/> helpfile = self.open_testfile("help.txt", "w")<br/> sys.stdout = helpfile<br/> try:<br/> pytest.raises(SystemExit, self.run_command, help=True)<br/> finally:<br/> sys.stdout = stdout<br/> helpfile.close()<br/> help_string = self.read_testfile("help.txt").decode('utf-8')<br/> print(help_string)<br/> convertsummary = self.convertmodule.__doc__.split("\n")[0]<br/> # the convertsummary might be wrapped. this will probably unwrap it<br/>&gt; assert convertsummary in help_string.replace("\n", " ")<br/><span class="error">E AssertionError: assert 'Convert an OpenOffice.org (SDF) localization file to Gettext PO localization files.' in 'Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT ...IFILESTYLE</span><br/> how to split po/pot files (single, toplevel or<br/> onefile)<br/> '<br/><span class="error">E + where 'Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT ...IFILESTYLE</span><br/> how to split po/pot files (single, toplevel or<br/> onefile)<br/> ' = &lt;built-in method replace of unicode object at 0x0000000006AD50C0&gt;('\n', ' ')<br/><span class="error">E + where &lt;built-in method replace of unicode object at 0x0000000006AD50C0&gt; = 'Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT ...IFILESTYLE</span><br/>\n how to split po/pot files (single, toplevel or<br/>\n onefile)<br/>\n'.replace<br/><br/>..\..\translate\convert\test_convert.py:114: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp] [-P|--pot]
Convert an OpenOffice.org (SDF) localization file to Gettext PO localization
files. See: http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/oo2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in oo, sdf formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
-l LANG, --language=LANG
set target language to extract from oo file (e.g. af-
ZA)
--source-language=LANG
set source language code (default en-US)
--nonrecursiveinput don't treat the input oo as a recursive store
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
--multifile=MULTIFILESTYLE
how to split po/pot files (single, toplevel or
onefile)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_oo2xliff.py::TestOO2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_oo2xliff.TestOO2POCommand object at 0x0000000006DABA20&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_oo2xliff.py:24: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_oo2xliff.TestOO2POCommand object at 0x0000000006DABA20&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp]
Convert an OpenOffice.org (SDF) localization file to XLIFF localization files.
See: http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/oo2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in oo, sdf formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in xlf format
-S, --timestamp skip conversion if the output file has newer timestamp
-l LANG, --language=LANG
set target language to extract from oo file (e.g. af-
ZA)
--source-language=LANG
set source language code (default en-US)
--nonrecursiveinput don't treat the input oo as a recursive store
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
--multifile=MULTIFILESTYLE
how to split po/pot files (single, toplevel or
onefile)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_php2po.py::TestPhp2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_php2po.TestPhp2POCommand object at 0x0000000006DF6198&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_php2po.py:147: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_php2po.TestPhp2POCommand object at 0x0000000006DF6198&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp] [-P|--pot]
Convert PHP localization files to Gettext PO localization files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/php2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in html, php formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in html, php formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2csv.py::TestPO2CSVCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2csv.TestPO2CSVCommand object at 0x0000000006DB8390&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2csv.py:140: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2csv.TestPO2CSVCommand object at 0x0000000006DB8390&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp]
Convert Gettext PO localization files to Comma-Separated Value (.csv) files.
See: http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/csv2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in csv format
-S, --timestamp skip conversion if the output file has newer timestamp
--columnorder=COLUMNORDER
specify the order and position of columns
(location,source,target)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2dtd.py::TestPO2DTDCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2dtd.TestPO2DTDCommand object at 0x0000000006ED7F60&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2dtd.py:529: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2dtd.TestPO2DTDCommand object at 0x0000000006ED7F60&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Converts a Gettext PO file to a UTF-8 encoded Mozilla .dtd file. .. note:
Conversion is either done using a template plus PO file or just using the
.po file.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in dtd format
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in dtd format
-S, --timestamp skip conversion if the output file has newer timestamp
--threshold=PERCENT only convert files where the translation completion is
above PERCENT
--fuzzy use translations marked fuzzy
--nofuzzy don't use translations marked fuzzy (default)
--removeuntranslated remove untranslated strings from output
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2html.py::TestPO2HtmlCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2html.TestPO2HtmlCommand object at 0x0000000006F14940&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2html.py:130: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2html.TestPO2HtmlCommand object at 0x0000000006F14940&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Convert Gettext PO localization files to HTML files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/html2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in htm, html, xhtml formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in htm, html, xhtml formats
-S, --timestamp skip conversion if the output file has newer timestamp
--threshold=PERCENT only convert files where the translation completion is
above PERCENT
--fuzzy use translations marked fuzzy
--nofuzzy don't use translations marked fuzzy (default)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2ical.py::TestPO2IcalCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2ical.TestPO2IcalCommand object at 0x0000000006F24D30&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2ical.py:70: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2ical.TestPO2IcalCommand object at 0x0000000006F24D30&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Convert Gettext PO localization files to iCal files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/ical2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in ics format
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in ics format
-S, --timestamp skip conversion if the output file has newer timestamp
--threshold=PERCENT only convert files where the translation completion is
above PERCENT
--fuzzy use translations marked fuzzy
--nofuzzy don't use translations marked fuzzy (default)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2ini.py::TestPO2IniCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2ini.TestPO2IniCommand object at 0x0000000006F99BA8&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2ini.py:117: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2ini.TestPO2IniCommand object at 0x0000000006F99BA8&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Convert Gettext PO localization files to .ini files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/ini2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in ini, isl formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in ini, isl formats
-S, --timestamp skip conversion if the output file has newer timestamp
--threshold=PERCENT only convert files where the translation completion is
above PERCENT
--fuzzy use translations marked fuzzy
--nofuzzy don't use translations marked fuzzy (default)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2l20n.py::TestPO2L20nCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2l20n.TestPO2L20nCommand object at 0x0000000006FB73C8&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2l20n.py:53: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2l20n.TestPO2L20nCommand object at 0x0000000006FB73C8&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Convert Gettext PO localization files to .ftl files.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in ftl format
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in ftl format
-S, --timestamp skip conversion if the output file has newer timestamp
--threshold=PERCENT only convert files where the translation completion is
above PERCENT
--fuzzy use translations marked fuzzy
--nofuzzy don't use translations marked fuzzy (default)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2moz.py::TestPO2MozCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2moz.TestPO2MozCommand object at 0x0000000006FCC080&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2moz.py:15: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2moz.TestPO2MozCommand object at 0x0000000006FCC080&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Convert Gettext PO localization files to Mozilla .dtd and .properties files.
See: http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/moz2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in *, dtd.po, dtd.pot, inc.po,
inc.pot, ini.po, ini.pot, it.po, it.pot, js, lang.po,
lang.pot, manifest, properties.po, properties.pot, rdf
formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in *, dtd, inc, ini, it, js, lang,
manifest, properties, rdf formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in *, dtd, inc, ini, it, js, lang,
manifest, properties, rdf formats
-S, --timestamp skip conversion if the output file has newer timestamp
-l LOCALE, --locale=LOCALE
set output locale (required as this sets the directory
names)
--threshold=PERCENT only convert files where the translation completion is
above PERCENT
--fuzzy use translations marked fuzzy
--nofuzzy don't use translations marked fuzzy (default)
--removeuntranslated remove untranslated strings from output
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2mozlang.py::TestPO2LangCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2mozlang.TestPO2LangCommand object at 0x0000000006FB9E10&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2mozlang.py:58: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2mozlang.TestPO2LangCommand object at 0x0000000006FB9E10&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Convert Gettext PO localization files to Mozilla .lang files.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in lang format
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in lang format
-S, --timestamp skip conversion if the output file has newer timestamp
--mark-active mark the file as active
--threshold=PERCENT only convert files where the translation completion is
above PERCENT
--fuzzy use translations marked fuzzy
--nofuzzy don't use translations marked fuzzy (default)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2oo.py::TestPO2OOCommand::()::test_convertoo</td>
<td class="col-duration">0.02</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2oo.TestPO2OOCommand object at 0x000000000700F978&gt;<br/><br/> def test_convertoo(self):<br/> """checks that the convertoo function is working"""<br/> oobase = r'svx source\dialog\numpages.src 0 string RID_SVXPAGE_NUM_OPTIONS STR_BULLET 0 %s %s 20050924 09:13:58' + '\r\n'<br/> posource = '''#: numpages.src#RID_SVXPAGE_NUM_OPTIONS.STR_BULLET.string.text\nmsgid "Simple String"\nmsgstr "Dimpled Ring"\n'''<br/> ootemplate = oobase % ('en-US', 'Simple String')<br/> ooexpected = oobase % ('zu', 'Dimpled Ring')<br/> newoo = self.convertoo(posource, ootemplate, language="zu")<br/>&gt; assert newoo.decode('utf-8') == ootemplate + ooexpected<br/><span class="error">E AssertionError: assert 'svx source\d...4 09:13:58</span><br/><br/>\n' == 'svx\tsource\\... 09:13:58\r\n'<br/><span class="error">E - svx source\dialog\numpages.src 0 string RID_SVXPAGE_NUM_OPTIONS STR_BULLET 0 en-US Simple String 20050924 09:13:58</span><br/><span class="error">E - </span><br/><span class="error">E - svx source\dialog\numpages.src 0 string RID_SVXPAGE_NUM_OPTIONS STR_BULLET 0 zu Dimpled Ring 20050924 09:13:58</span><br/><span class="error">E - </span><br/><span class="error">E + svx\tsource\\dialog\</span><br/><span class="error">E + umpages.src\t0\tstring\tRID_SVXPAGE_NUM_OPTIONS\tSTR_BULLET\t\t\t0\ten-US\tSimple String\t\t\t\t20050924 09:13:58\r</span><br/><span class="error">E + svx\tsource\\dialog\</span><br/><span class="error">E + umpages.src\t0\tstring\tRID_SVXPAGE_NUM_OPTIONS\tSTR_BULLET\t\t\t0\tzu\tDimpled Ring\t\t\t\t20050924 09:13:58\r</span><br/><br/>..\..\translate\convert\test_po2oo.py:57: AssertionError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2oo.py::TestPO2OOCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2oo.TestPO2OOCommand object at 0x00000000070105C0&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2oo.py:164: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2oo.TestPO2OOCommand object at 0x00000000070105C0&gt;<br/><br/> def test_help(self):<br/> """tests getting help (returning the help_string so further tests can be done)"""<br/> stdout = sys.stdout<br/> helpfile = self.open_testfile("help.txt", "w")<br/> sys.stdout = helpfile<br/> try:<br/> pytest.raises(SystemExit, self.run_command, help=True)<br/> finally:<br/> sys.stdout = stdout<br/> helpfile.close()<br/> help_string = self.read_testfile("help.txt").decode('utf-8')<br/> print(help_string)<br/> convertsummary = self.convertmodule.__doc__.split("\n")[0]<br/> # the convertsummary might be wrapped. this will probably unwrap it<br/>&gt; assert convertsummary in help_string.replace("\n", " ")<br/><span class="error">E AssertionError: assert 'Convert Gettext PO localization files to an OpenOffice.org (SDF) localization file.' in 'Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT ...IFILESTYLE</span><br/> how to split po/pot files (single, toplevel or<br/> onefile)<br/> '<br/><span class="error">E + where 'Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT ...IFILESTYLE</span><br/> how to split po/pot files (single, toplevel or<br/> onefile)<br/> ' = &lt;built-in method replace of unicode object at 0x0000000006E19990&gt;('\n', ' ')<br/><span class="error">E + where &lt;built-in method replace of unicode object at 0x0000000006E19990&gt; = 'Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT ...IFILESTYLE</span><br/>\n how to split po/pot files (single, toplevel or<br/>\n onefile)<br/>\n'.replace<br/><br/>..\..\translate\convert\test_convert.py:114: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Convert Gettext PO localization files to an OpenOffice.org (SDF) localization
file. See: http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/oo2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot, xlf formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in oo, sdf formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in oo, sdf formats
-S, --timestamp skip conversion if the output file has newer timestamp
-l LANG, --language=LANG
set target language code (e.g. af-ZA) [required]
--source-language=LANG
set source language code (default en-US)
-T, --keeptimestamp don't change the timestamps of the strings
--nonrecursiveoutput don't treat the output oo as a recursive store
--nonrecursivetemplate
don't treat the template oo as a recursive store
--skipsource don't output the source language, but fallback to it
where needed
--filteraction=ACTION
action on pofilter failure: none (default), warn,
exclude-serious, exclude-all
--threshold=PERCENT only convert files where the translation completion is
above PERCENT
--fuzzy use translations marked fuzzy
--nofuzzy don't use translations marked fuzzy (default)
--multifile=MULTIFILESTYLE
how to split po/pot files (single, toplevel or
onefile)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2php.py::TestPO2PhpCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2php.TestPO2PhpCommand object at 0x000000000705CEB8&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2php.py:162: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2php.TestPO2PhpCommand object at 0x000000000705CEB8&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Convert Gettext PO localization files to PHP localization files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/php2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in html, php formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in html, php formats
-S, --timestamp skip conversion if the output file has newer timestamp
--threshold=PERCENT only convert files where the translation completion is
above PERCENT
--fuzzy use translations marked fuzzy
--nofuzzy don't use translations marked fuzzy (default)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2prop.py::TestPO2PropCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2prop.TestPO2PropCommand object at 0x0000000007121CC0&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2prop.py:452: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2prop.TestPO2PropCommand object at 0x0000000007121CC0&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Convert Gettext PO localization files to Java/Mozilla .properties files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/prop2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in lang, properties, strings formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in lang, properties, strings
formats
-S, --timestamp skip conversion if the output file has newer timestamp
--personality=TYPE override the input file format: flex, java, strings-
utf8, mozilla, java-utf8, joomla, skype, gaia, strings
(for .properties files, default: java)
--encoding=ENCODING override the encoding set by the personality
--threshold=PERCENT only convert files where the translation completion is
above PERCENT
--fuzzy use translations marked fuzzy
--nofuzzy don't use translations marked fuzzy (default)
--removeuntranslated remove untranslated strings from output
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2resx.py::TestPO2TSCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2resx.TestPO2TSCommand object at 0x000000000718C0B8&gt;<br/><br/> def test_help(self):<br/> """ Tests getting help """<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2resx.py:436: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2resx.TestPO2TSCommand object at 0x000000000718C0B8&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Convert Gettext PO localisation files to .Net Resource (.resx) files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/resx2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in resx format
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in resx format
-S, --timestamp skip conversion if the output file has newer timestamp
--fuzzy use translations marked fuzzy
--nofuzzy don't use translations marked fuzzy (default)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2tiki.py::TestPo2TikiCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2tiki.TestPo2TikiCommand object at 0x0000000007193710&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2tiki.py:40: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2tiki.TestPo2TikiCommand object at 0x0000000007193710&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp]
Convert Gettext PO files to TikiWiki's language.php files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/tiki2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in tiki format
-S, --timestamp skip conversion if the output file has newer timestamp
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2tmx.py::TestPO2TMXCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2tmx.TestPO2TMXCommand object at 0x00000000071B0DD8&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2tmx.py:197: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2tmx.TestPO2TMXCommand object at 0x00000000071B0DD8&gt;<br/><br/> def test_help(self):<br/> """tests getting help (returning the help_string so further tests can be done)"""<br/> stdout = sys.stdout<br/> helpfile = self.open_testfile("help.txt", "w")<br/> sys.stdout = helpfile<br/> try:<br/> pytest.raises(SystemExit, self.run_command, help=True)<br/> finally:<br/> sys.stdout = stdout<br/> helpfile.close()<br/> help_string = self.read_testfile("help.txt").decode('utf-8')<br/> print(help_string)<br/> convertsummary = self.convertmodule.__doc__.split("\n")[0]<br/> # the convertsummary might be wrapped. this will probably unwrap it<br/>&gt; assert convertsummary in help_string.replace("\n", " ")<br/><span class="error">E AssertionError: assert 'Convert Gettext PO localization files to a TMX (Translation Memory eXchange) file.' in 'Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT ...omments=COMMENT set default comment import: none, source, type or</span><br/> others (default: none)<br/> '<br/><span class="error">E + where 'Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT ...omments=COMMENT set default comment import: none, source, type or</span><br/> others (default: none)<br/> ' = &lt;built-in method replace of unicode object at 0x0000000007015120&gt;('\n', ' ')<br/><span class="error">E + where &lt;built-in method replace of unicode object at 0x0000000007015120&gt; = 'Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT ...omments=COMMENT set default comment import: none, source, type or</span><br/>\n others (default: none)<br/>\n'.replace<br/><br/>..\..\translate\convert\test_convert.py:114: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp]
Convert Gettext PO localization files to a TMX (Translation Memory eXchange)
file. See: http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/po2tmx.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in tmx format
-S, --timestamp skip conversion if the output file has newer timestamp
-l LANG, --language=LANG
set target language code (e.g. af-ZA) [required]
--source-language=LANG
set source language code (default: en)
--comments=COMMENT set default comment import: none, source, type or
others (default: none)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2ts.py::TestPO2TSCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2ts.TestPO2TSCommand object at 0x0000000007224160&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2ts.py:102: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2ts.TestPO2TSCommand object at 0x0000000007224160&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Convert Gettext PO localization files to Qt Linguist (.ts) files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/ts2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in ts format
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in ts format
-S, --timestamp skip conversion if the output file has newer timestamp
-c CONTEXT, --context=CONTEXT
use supplied context instead of the one in the .po
file comment
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_po2txt.py::TestPO2TxtCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2txt.TestPO2TxtCommand object at 0x00000000072A6518&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_po2txt.py:56: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_po2txt.TestPO2TxtCommand object at 0x00000000072A6518&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Convert Gettext PO localization files to plain text (.txt) files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/txt2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot, xlf formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in txt format
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in txt format
-S, --timestamp skip conversion if the output file has newer timestamp
--encoding=ENCODING The encoding of the template file (default: UTF-8)
-w WRAP, --wrap=WRAP set number of columns to wrap text at
--threshold=PERCENT only convert files where the translation completion is
above PERCENT
--fuzzy use translations marked fuzzy
--nofuzzy don't use translations marked fuzzy (default)
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_pot2po.py::TestPOT2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_pot2po.TestPOT2POCommand object at 0x00000000074A2390&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_pot2po.py:787: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_pot2po.TestPOT2POCommand object at 0x00000000074A2390&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp] [-P|--pot]
Convert template files (like .pot or template .xlf files) to translation
files, preserving existing translations. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/pot2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in catkeys, lang, pot, ts, xlf, xliff
formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in catkeys, lang, po, pot, ts, xlf,
xliff formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in catkeys, lang, po, pot, ts, xlf,
xliff formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--tm=TM The file to use as translation memory when fuzzy
matching
-s MIN_SIMILARITY, --similarity=MIN_SIMILARITY
The minimum similarity for inclusion (default: 75%)
--nofuzzymatching Disable fuzzy matching
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_prop2po.py::TestProp2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_prop2po.TestProp2POCommand object at 0x00000000074672E8&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_prop2po.py:325: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_prop2po.TestProp2POCommand object at 0x00000000074672E8&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp] [-P|--pot]
Convert Java/Mozilla .properties files to Gettext PO localization files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/prop2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in lang, properties, strings formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in lang, properties, strings
formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--personality=TYPE override the input file format: flex, java, strings-
utf8, mozilla, java-utf8, joomla, skype, gaia, strings
(for .properties files, default: java)
--encoding=ENCODING override the encoding set by the personality
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_resx2po.py::TestRESX2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_resx2po.TestRESX2POCommand object at 0x0000000007475A58&gt;<br/><br/> def test_help(self):<br/> """ Tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_resx2po.py:182: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_resx2po.TestRESX2POCommand object at 0x0000000007475A58&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp] [-P|--pot]
Convert .Net Resource (.resx) to Gettext PO localisation files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/resx2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in resx format
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in resx format
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--filter=FILTER leaves to extract e.g. 'name,desc': (default: extract
everything)
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_tiki2po.py::TestTiki2PoCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_tiki2po.TestTiki2PoCommand object at 0x0000000007499DA0&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_tiki2po.py:55: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_tiki2po.TestTiki2PoCommand object at 0x0000000007499DA0&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp]
Convert TikiWiki's language.php files to GetText PO files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/tiki2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in php format
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-S, --timestamp skip conversion if the output file has newer timestamp
--include-unused Include strings in the unused section
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_ts2po.py::TestTS2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_ts2po.TestTS2POCommand object at 0x00000000074B2710&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_ts2po.py:117: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_ts2po.TestTS2POCommand object at 0x00000000074B2710&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp] [-P|--pot]
Convert Qt Linguist (.ts) files to Gettext PO localization files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/ts2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in ts format
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_txt2po.py::TestTxt2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_txt2po.TestTxt2POCommand object at 0x0000000007527550&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_txt2po.py:138: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_txt2po.TestTxt2POCommand object at 0x0000000007527550&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp] [-P|--pot]
Convert plain text (.txt) files to Gettext PO localization files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/txt2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in *, txt formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--encoding=ENCODING The encoding of the input file (default: UTF-8)
--flavour=FLAVOUR The flavour of text file: plain (default), dokuwiki,
mediawiki
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_xliff2po.py::TestBasicXLIFF2PO::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_xliff2po.TestBasicXLIFF2PO object at 0x00000000074EEEF0&gt;<br/><br/> def test_help(self):<br/> """tests getting help (returning the help_string so further tests can be done)"""<br/> stdout = sys.stdout<br/> helpfile = self.open_testfile("help.txt", "w")<br/> sys.stdout = helpfile<br/> try:<br/> pytest.raises(SystemExit, self.run_command, help=True)<br/> finally:<br/> sys.stdout = stdout<br/> helpfile.close()<br/> help_string = self.read_testfile("help.txt").decode('utf-8')<br/> print(help_string)<br/> convertsummary = self.convertmodule.__doc__.split("\n")[0]<br/> # the convertsummary might be wrapped. this will probably unwrap it<br/> assert convertsummary in help_string.replace("\n", " ")<br/> usageline = help_string[:help_string.find("\n")]<br/> # Different versions of optparse might contain either upper or<br/> # lowercase versions of 'Usage:' and 'Options:', so we need to take<br/> # that into account<br/> assert (usageline.startswith("Usage: ") or usageline.startswith("usage: ")) \<br/> and "[--version] [-h|--help]" in usageline<br/> options = help_string[help_string.find("ptions:\n"):]<br/> options = options[options.find("\n")+1:]<br/>&gt; options = self.help_check(options, "--progress=PROGRESS")<br/><br/>..\..\translate\convert\test_convert.py:123: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_xliff2po.TestBasicXLIFF2PO object at 0x00000000074EEEF0&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp] [-P|--pot]
Convert XLIFF localization files to Gettext PO localization files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/xliff2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in xlf, xliff formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/convert/test_xliff2po.py::TestXLIFF2POCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_xliff2po.TestXLIFF2POCommand object at 0x00000000075D4630&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\convert\test_xliff2po.py:253: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_xliff2po.TestXLIFF2POCommand object at 0x00000000075D4630&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp] [-P|--pot]
Convert XLIFF localization files to Gettext PO localization files. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/xliff2po.html for examples and usage instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in xlf, xliff formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): merge, msgctxt (default: 'msgctxt')
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/misc/test_optrecurse.py::TestRecursiveOptionParser::()::test_outputfile_receives_bytes</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.misc.test_optrecurse.TestRecursiveOptionParser instance at 0x0000000007CB1988&gt;<br/>capsys = &lt;_pytest.capture.CaptureFixture instance at 0x0000000007FF6D88&gt;<br/><br/> def test_outputfile_receives_bytes(self, capsys):<br/> parser = optrecurse.RecursiveOptionParser({"txt": ("po", None)})<br/> <br/> temp_file = TemporaryFile()<br/> with TemporaryFile() as tempfile:<br/>&gt; out = parser.openoutputfile(None, temp_file.name)<br/><br/>..\..\translate\misc\test_optrecurse.py:26: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.misc.optrecurse.RecursiveOptionParser object at 0x00000000080582B0&gt;<br/>options = None<br/>fulloutputpath = 'c:\\users\\nick.schonning\\appdata\\local\\temp\\tmp53njpg'<br/><br/> def openoutputfile(self, options, fulloutputpath):<br/> """Opens the output file."""<br/> if fulloutputpath is None:<br/> return StdoutWrapper()<br/>&gt; return open(fulloutputpath, 'wb')<br/><span class="error">E IOError: [Errno 13] Permission denied: 'c:\\users\\nick.schonning\\appdata\\local\\temp\\tmp53njpg'</span><br/><br/>..\..\translate\misc\optrecurse.py:555: IOError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/test_mo.py::TestMOFile::()::test_output</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_mo.TestMOFile object at 0x000000000879A240&gt;<br/><br/> def test_output(self):<br/> for posource in posources:<br/> print("PO source file")<br/> print(posource)<br/> PO_FILE, MO_MSGFMT, MO_POCOMPILE = self.get_mo_and_po()<br/> posource = posource.encode('utf-8')<br/> <br/> with open(PO_FILE, 'wb') as out_file:<br/> out_file.write(posource)<br/> <br/>&gt; subprocess.call(['msgfmt', PO_FILE, '-o', MO_MSGFMT])<br/><br/>..\..\translate\storage\test_mo.py:150: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>c:\python27\lib\subprocess.py:168: in call<br/> return Popen(*popenargs, **kwargs).wait()<br/>c:\python27\lib\subprocess.py:390: in __init__<br/> errread, errwrite)<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;subprocess.Popen object at 0x000000000879A2E8&gt;<br/>args = 'msgfmt C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestMOFile_test_output.test.po -o C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestMOFile_test_output.test.msgfmt.mo'<br/>executable = None, preexec_fn = None, close_fds = False, cwd = None, env = None<br/>universal_newlines = False<br/>startupinfo = &lt;subprocess.STARTUPINFO instance at 0x0000000005839308&gt;<br/>creationflags = 0, shell = False, to_close = set([]), p2cread = None<br/>p2cwrite = None, c2pread = None, c2pwrite = None, errread = None<br/>errwrite = None<br/><br/> def _execute_child(self, args, executable, preexec_fn, close_fds,<br/> cwd, env, universal_newlines,<br/> startupinfo, creationflags, shell, to_close,<br/> p2cread, p2cwrite,<br/> c2pread, c2pwrite,<br/> errread, errwrite):<br/> """Execute program (MS Windows version)"""<br/> <br/> if not isinstance(args, types.StringTypes):<br/> args = list2cmdline(args)<br/> <br/> # Process startup details<br/> if startupinfo is None:<br/> startupinfo = STARTUPINFO()<br/> if None not in (p2cread, c2pwrite, errwrite):<br/> startupinfo.dwFlags |= _subprocess.STARTF_USESTDHANDLES<br/> startupinfo.hStdInput = p2cread<br/> startupinfo.hStdOutput = c2pwrite<br/> startupinfo.hStdError = errwrite<br/> <br/> if shell:<br/> startupinfo.dwFlags |= _subprocess.STARTF_USESHOWWINDOW<br/> startupinfo.wShowWindow = _subprocess.SW_HIDE<br/> comspec = os.environ.get("COMSPEC", "cmd.exe")<br/> args = '{} /c "{}"'.format (comspec, args)<br/> if (_subprocess.GetVersion() &gt;= 0x80000000 or<br/> os.path.basename(comspec).lower() == "command.com"):<br/> # Win9x, or using command.com on NT. We need to<br/> # use the w9xpopen intermediate program. For more<br/> # information, see KB Q150956<br/> # (http://web.archive.org/web/20011105084002/http://support.microsoft.com/support/kb/articles/Q150/9/56.asp)<br/> w9xpopen = self._find_w9xpopen()<br/> args = '"%s" %s' % (w9xpopen, args)<br/> # Not passing CREATE_NEW_CONSOLE has been known to<br/> # cause random failures on win9x. Specifically a<br/> # dialog: "Your program accessed mem currently in<br/> # use at xxx" and a hopeful warning about the<br/> # stability of your system. Cost is Ctrl+C wont<br/> # kill children.<br/> creationflags |= _subprocess.CREATE_NEW_CONSOLE<br/> <br/> def _close_in_parent(fd):<br/> fd.Close()<br/> to_close.remove(fd)<br/> <br/> # Start the process<br/> try:<br/> hp, ht, pid, tid = _subprocess.CreateProcess(executable, args,<br/> # no special security<br/> None, None,<br/> int(not close_fds),<br/> creationflags,<br/> env,<br/> cwd,<br/>&gt; startupinfo)<br/><span class="error">E WindowsError: [Error 2] The system cannot find the file specified</span><br/><br/>c:\python27\lib\subprocess.py:640: WindowsError<br/>----------------------------- Captured stdout call -----------------------------<br/>PO source file
msgid ""
msgstr ""
"PO-Revision-Date: 2006-02-09 23:33+0200\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8-bit\n"
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/test_oo.py::test_makekey</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">def test_makekey():<br/> """checks the makekey function for consistency"""<br/> assert oo.makekey(('project', r'path\to\the\sourcefile.src', 'resourcetype', 'GROUP_ID', 'LOCAL_ID', 'platform'), False) == "sourcefile.src#GROUP_ID.LOCAL_ID.resourcetype"<br/> # Testwith long_key i.e. used in multifile options<br/>&gt; assert oo.makekey(('project', r'path\to\the\sourcefile.src', 'resourcetype', 'GROUP_ID', 'LOCAL_ID', 'platform'), True) == "project/path/to/the/sourcefile.src#GROUP_ID.LOCAL_ID.resourcetype"<br/><span class="error">E AssertionError: assert 'project_path....resourcetype' == 'project/path/....resourcetype'</span><br/><span class="error">E Skipping 48 identical trailing characters in diff, use -v to show</span><br/><span class="error">E - project_path/to/t</span><br/><span class="error">E ? ^</span><br/><span class="error">E + project/path/to/t</span><br/><span class="error">E ? ^</span><br/><br/>..\..\translate\storage\test_oo.py:13: AssertionError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/test_utx.py::TestUtxFile::()::test_create_blank</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_utx.TestUtxFile object at 0x000000000936A2E8&gt;<br/><br/> def test_create_blank(self):<br/> """Tests creating a new blank store"""<br/>&gt; store = self.StoreClass()<br/><br/>..\..\translate\storage\test_base.py:219: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.utx.UtxFile object at 0x000000000936A240&gt;<br/>inputfile = None, kwargs = {}<br/><br/> def __init__(self, inputfile=None, **kwargs):<br/> """Construct an UTX dictionary, optionally reading in from inputfile.<br/> """<br/> super(UtxFile, self).__init__(**kwargs)<br/> self.filename = ''<br/> self.extension = ''<br/> self._fieldnames = ['src', 'tgt', 'src:pos']<br/> self._header = {<br/> "version": "1.00",<br/> "source_language": "en",<br/> "date_created": time.strftime("%FT%TZ%z",<br/>&gt; time.localtime(time.time()))<br/> }<br/><span class="error">E ValueError: Invalid format string</span><br/><br/>..\..\translate\storage\utx.py:187: ValueError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/test_utx.py::TestUtxFile::()::test_add</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_utx.TestUtxFile object at 0x000000000939E550&gt;<br/><br/> def test_add(self):<br/> """Tests adding a new unit with a source string"""<br/>&gt; store = self.StoreClass()<br/><br/>..\..\translate\storage\test_base.py:224: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.utx.UtxFile object at 0x000000000939E588&gt;<br/>inputfile = None, kwargs = {}<br/><br/> def __init__(self, inputfile=None, **kwargs):<br/> """Construct an UTX dictionary, optionally reading in from inputfile.<br/> """<br/> super(UtxFile, self).__init__(**kwargs)<br/> self.filename = ''<br/> self.extension = ''<br/> self._fieldnames = ['src', 'tgt', 'src:pos']<br/> self._header = {<br/> "version": "1.00",<br/> "source_language": "en",<br/> "date_created": time.strftime("%FT%TZ%z",<br/>&gt; time.localtime(time.time()))<br/> }<br/><span class="error">E ValueError: Invalid format string</span><br/><br/>..\..\translate\storage\utx.py:187: ValueError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/test_utx.py::TestUtxFile::()::test_find</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_utx.TestUtxFile object at 0x000000000939EA20&gt;<br/><br/> def test_find(self):<br/> """Tests searching for a given source string"""<br/>&gt; store = self.StoreClass()<br/><br/>..\..\translate\storage\test_base.py:233: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.utx.UtxFile object at 0x000000000939E978&gt;<br/>inputfile = None, kwargs = {}<br/><br/> def __init__(self, inputfile=None, **kwargs):<br/> """Construct an UTX dictionary, optionally reading in from inputfile.<br/> """<br/> super(UtxFile, self).__init__(**kwargs)<br/> self.filename = ''<br/> self.extension = ''<br/> self._fieldnames = ['src', 'tgt', 'src:pos']<br/> self._header = {<br/> "version": "1.00",<br/> "source_language": "en",<br/> "date_created": time.strftime("%FT%TZ%z",<br/>&gt; time.localtime(time.time()))<br/> }<br/><span class="error">E ValueError: Invalid format string</span><br/><br/>..\..\translate\storage\utx.py:187: ValueError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/test_utx.py::TestUtxFile::()::test_translate</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_utx.TestUtxFile object at 0x000000000937E048&gt;<br/><br/> def test_translate(self):<br/> """Tests the translate method and non-ascii characters."""<br/>&gt; store = self.StoreClass()<br/><br/>..\..\translate\storage\test_base.py:242: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.utx.UtxFile object at 0x000000000937E080&gt;<br/>inputfile = None, kwargs = {}<br/><br/> def __init__(self, inputfile=None, **kwargs):<br/> """Construct an UTX dictionary, optionally reading in from inputfile.<br/> """<br/> super(UtxFile, self).__init__(**kwargs)<br/> self.filename = ''<br/> self.extension = ''<br/> self._fieldnames = ['src', 'tgt', 'src:pos']<br/> self._header = {<br/> "version": "1.00",<br/> "source_language": "en",<br/> "date_created": time.strftime("%FT%TZ%z",<br/>&gt; time.localtime(time.time()))<br/> }<br/><span class="error">E ValueError: Invalid format string</span><br/><br/>..\..\translate\storage\utx.py:187: ValueError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/test_utx.py::TestUtxFile::()::test_parse</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_utx.TestUtxFile object at 0x000000000940C2B0&gt;<br/><br/> def test_parse(self):<br/> """Tests converting to a string and parsing the resulting string"""<br/>&gt; store = self.StoreClass()<br/><br/>..\..\translate\storage\test_base.py:274: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.utx.UtxFile object at 0x000000000940C208&gt;<br/>inputfile = None, kwargs = {}<br/><br/> def __init__(self, inputfile=None, **kwargs):<br/> """Construct an UTX dictionary, optionally reading in from inputfile.<br/> """<br/> super(UtxFile, self).__init__(**kwargs)<br/> self.filename = ''<br/> self.extension = ''<br/> self._fieldnames = ['src', 'tgt', 'src:pos']<br/> self._header = {<br/> "version": "1.00",<br/> "source_language": "en",<br/> "date_created": time.strftime("%FT%TZ%z",<br/>&gt; time.localtime(time.time()))<br/> }<br/><span class="error">E ValueError: Invalid format string</span><br/><br/>..\..\translate\storage\utx.py:187: ValueError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/test_utx.py::TestUtxFile::()::test_files</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_utx.TestUtxFile object at 0x0000000009426860&gt;<br/><br/> def test_files(self):<br/> """Tests saving to and loading from files"""<br/>&gt; store = self.StoreClass()<br/><br/>..\..\translate\storage\test_base.py:284: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.utx.UtxFile object at 0x0000000009426898&gt;<br/>inputfile = None, kwargs = {}<br/><br/> def __init__(self, inputfile=None, **kwargs):<br/> """Construct an UTX dictionary, optionally reading in from inputfile.<br/> """<br/> super(UtxFile, self).__init__(**kwargs)<br/> self.filename = ''<br/> self.extension = ''<br/> self._fieldnames = ['src', 'tgt', 'src:pos']<br/> self._header = {<br/> "version": "1.00",<br/> "source_language": "en",<br/> "date_created": time.strftime("%FT%TZ%z",<br/>&gt; time.localtime(time.time()))<br/> }<br/><span class="error">E ValueError: Invalid format string</span><br/><br/>..\..\translate\storage\utx.py:187: ValueError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/test_utx.py::TestUtxFile::()::test_save</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_utx.TestUtxFile object at 0x00000000093D8EF0&gt;<br/><br/> def test_save(self):<br/> """Tests that we can save directly back to the original file."""<br/>&gt; store = self.StoreClass()<br/><br/>..\..\translate\storage\test_base.py:295: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.utx.UtxFile object at 0x00000000093D8550&gt;<br/>inputfile = None, kwargs = {}<br/><br/> def __init__(self, inputfile=None, **kwargs):<br/> """Construct an UTX dictionary, optionally reading in from inputfile.<br/> """<br/> super(UtxFile, self).__init__(**kwargs)<br/> self.filename = ''<br/> self.extension = ''<br/> self._fieldnames = ['src', 'tgt', 'src:pos']<br/> self._header = {<br/> "version": "1.00",<br/> "source_language": "en",<br/> "date_created": time.strftime("%FT%TZ%z",<br/>&gt; time.localtime(time.time()))<br/> }<br/><span class="error">E ValueError: Invalid format string</span><br/><br/>..\..\translate\storage\utx.py:187: ValueError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/test_utx.py::TestUtxFile::()::test_markup</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_utx.TestUtxFile object at 0x00000000093D8F28&gt;<br/><br/> def test_markup(self):<br/> """Tests that markup survives the roundtrip. Most usefull for xml types."""<br/>&gt; store = self.StoreClass()<br/><br/>..\..\translate\storage\test_base.py:307: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.utx.UtxFile object at 0x00000000094269B0&gt;<br/>inputfile = None, kwargs = {}<br/><br/> def __init__(self, inputfile=None, **kwargs):<br/> """Construct an UTX dictionary, optionally reading in from inputfile.<br/> """<br/> super(UtxFile, self).__init__(**kwargs)<br/> self.filename = ''<br/> self.extension = ''<br/> self._fieldnames = ['src', 'tgt', 'src:pos']<br/> self._header = {<br/> "version": "1.00",<br/> "source_language": "en",<br/> "date_created": time.strftime("%FT%TZ%z",<br/>&gt; time.localtime(time.time()))<br/> }<br/><span class="error">E ValueError: Invalid format string</span><br/><br/>..\..\translate\storage\utx.py:187: ValueError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/test_utx.py::TestUtxFile::()::test_nonascii</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.test_utx.TestUtxFile object at 0x00000000093950B8&gt;<br/><br/> def test_nonascii(self):<br/>&gt; store = self.StoreClass()<br/><br/>..\..\translate\storage\test_base.py:314: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.storage.utx.UtxFile object at 0x00000000093950F0&gt;<br/>inputfile = None, kwargs = {}<br/><br/> def __init__(self, inputfile=None, **kwargs):<br/> """Construct an UTX dictionary, optionally reading in from inputfile.<br/> """<br/> super(UtxFile, self).__init__(**kwargs)<br/> self.filename = ''<br/> self.extension = ''<br/> self._fieldnames = ['src', 'tgt', 'src:pos']<br/> self._header = {<br/> "version": "1.00",<br/> "source_language": "en",<br/> "date_created": time.strftime("%FT%TZ%z",<br/>&gt; time.localtime(time.time()))<br/> }<br/><span class="error">E ValueError: Invalid format string</span><br/><br/>..\..\translate\storage\utx.py:187: ValueError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/versioncontrol/test_svn.py::TestSVN::()::test_detection</td>
<td class="col-duration">0.12</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.versioncontrol.test_svn.TestSVN object at 0x000000000965D748&gt;<br/><br/> def test_detection(self):<br/> print(self.co_path)<br/>&gt; o = get_versioned_object(self.co_path)<br/><br/>..\..\translate\storage\versioncontrol\test_svn.py:18: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>location = 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestSVN_test_detection\\checkout'<br/>versioning_systems = ['svn', 'cvs', 'darcs', 'git', 'bzr', 'hg']<br/>follow_symlinks = True, oldest_parent = None<br/><br/> def get_versioned_object(<br/> location,<br/> versioning_systems=None,<br/> follow_symlinks=True,<br/> oldest_parent=None):<br/> """return a versioned object for the given file"""<br/> if versioning_systems is None:<br/> versioning_systems = DEFAULT_RCS[:]<br/> # go through all RCS and return a versioned object if possible<br/> possible_ver_objs = []<br/> for vers_sys in versioning_systems:<br/> try:<br/> vers_sys_class = __get_rcs_class(vers_sys)<br/> if vers_sys_class is None:<br/> continue<br/> ver_obj = vers_sys_class(location, oldest_parent)<br/> if not ver_obj.SCAN_PARENTS:<br/> return ver_obj<br/> possible_ver_objs.append(ver_obj)<br/> except IOError:<br/> continue<br/> # if we find any RCS, return the one with shorted rel path<br/> if len(possible_ver_objs):<br/> possible_ver_objs.sort(key=lambda ver_obj: len(ver_obj.location_rel))<br/> return possible_ver_objs[0]<br/> # if 'location' is a symlink, then we should try the original file<br/> if follow_symlinks and os.path.islink(location):<br/> return get_versioned_object(<br/> os.path.realpath(location),<br/> versioning_systems=versioning_systems,<br/> follow_symlinks=False)<br/> # if everything fails:<br/>&gt; raise IOError("Could not find version control information: %s" % location)<br/><span class="error">E IOError: Could not find version control information: C:\Workspaces\github\translate\tests\xliff_conformance\TestSVN_test_detection\checkout</span><br/><br/>..\..\translate\storage\versioncontrol\__init__.py:340: IOError<br/>----------------------------- Captured stdout call -----------------------------<br/>C:\Workspaces\github\translate\tests\xliff_conformance\TestSVN_test_detection\checkout
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/storage/versioncontrol/test_svn.py::TestSVN::()::test_add</td>
<td class="col-duration">0.06</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.storage.versioncontrol.test_svn.TestSVN object at 0x000000000965D4E0&gt;<br/><br/> def test_add(self):<br/>&gt; o = get_versioned_object(self.co_path)<br/><br/>..\..\translate\storage\versioncontrol\test_svn.py:23: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>location = 'C:\\Workspaces\\github\\translate\\tests\\xliff_conformance\\TestSVN_test_add\\checkout'<br/>versioning_systems = ['git'], follow_symlinks = True, oldest_parent = None<br/><br/> def get_versioned_object(<br/> location,<br/> versioning_systems=None,<br/> follow_symlinks=True,<br/> oldest_parent=None):<br/> """return a versioned object for the given file"""<br/> if versioning_systems is None:<br/> versioning_systems = DEFAULT_RCS[:]<br/> # go through all RCS and return a versioned object if possible<br/> possible_ver_objs = []<br/> for vers_sys in versioning_systems:<br/> try:<br/> vers_sys_class = __get_rcs_class(vers_sys)<br/> if vers_sys_class is None:<br/> continue<br/> ver_obj = vers_sys_class(location, oldest_parent)<br/> if not ver_obj.SCAN_PARENTS:<br/> return ver_obj<br/> possible_ver_objs.append(ver_obj)<br/> except IOError:<br/> continue<br/> # if we find any RCS, return the one with shorted rel path<br/> if len(possible_ver_objs):<br/> possible_ver_objs.sort(key=lambda ver_obj: len(ver_obj.location_rel))<br/> return possible_ver_objs[0]<br/> # if 'location' is a symlink, then we should try the original file<br/> if follow_symlinks and os.path.islink(location):<br/> return get_versioned_object(<br/> os.path.realpath(location),<br/> versioning_systems=versioning_systems,<br/> follow_symlinks=False)<br/> # if everything fails:<br/>&gt; raise IOError("Could not find version control information: %s" % location)<br/><span class="error">E IOError: Could not find version control information: C:\Workspaces\github\translate\tests\xliff_conformance\TestSVN_test_add\checkout</span><br/><br/>..\..\translate\storage\versioncontrol\__init__.py:340: IOError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/tools/test_phppo2pypo.py::TestPhpPo2PyPoCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.tools.test_phppo2pypo.TestPhpPo2PyPoCommand object at 0x00000000096969E8&gt;<br/><br/> def test_help(self):<br/> """tests getting help (returning the help_string so further tests can be done)"""<br/> stdout = sys.stdout<br/> helpfile = self.open_testfile("help.txt", "w")<br/> sys.stdout = helpfile<br/> try:<br/> pytest.raises(SystemExit, self.run_command, help=True)<br/> finally:<br/> sys.stdout = stdout<br/> helpfile.close()<br/> help_string = self.read_testfile("help.txt").decode('utf-8')<br/> print(help_string)<br/> convertsummary = self.convertmodule.__doc__.split("\n")[0]<br/> # the convertsummary might be wrapped. this will probably unwrap it<br/> assert convertsummary in help_string.replace("\n", " ")<br/> usageline = help_string[:help_string.find("\n")]<br/> # Different versions of optparse might contain either upper or<br/> # lowercase versions of 'Usage:' and 'Options:', so we need to take<br/> # that into account<br/> assert (usageline.startswith("Usage: ") or usageline.startswith("usage: ")) \<br/> and "[--version] [-h|--help]" in usageline<br/> options = help_string[help_string.find("ptions:\n"):]<br/> options = options[options.find("\n")+1:]<br/>&gt; options = self.help_check(options, "--progress=PROGRESS")<br/><br/>..\..\translate\convert\test_convert.py:123: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.tools.test_phppo2pypo.TestPhpPo2PyPoCommand object at 0x00000000096969E8&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp]
Convert PHP format .po files to Python format .po files.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-S, --timestamp skip conversion if the output file has newer timestamp
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/tools/test_podebug.py::TestPODebug::()::test_hash</td>
<td class="col-duration">0.02</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.tools.test_podebug.TestPODebug instance at 0x0000000009412088&gt;<br/><br/> def test_hash(self):<br/> po_docs = (<br/> """<br/> msgid "Test msgid 1"<br/> msgstr "Test msgstr 1"<br/> """,<br/> """<br/> msgctxt "test context"<br/> msgid "Test msgid 2"<br/> msgstr "Test msgstr 2"<br/> """,<br/> """<br/> # Test comment 3<br/> msgctxt "test context 3"<br/> msgid "Test msgid 3"<br/> msgstr "Test msgstr 3"<br/> """)<br/> debugs = (podebug.podebug(format="%h "),<br/> podebug.podebug(format="%6h."),<br/> podebug.podebug(format="zzz%7h.zzz"),<br/> podebug.podebug(format="%f %F %b %B %d %s "),<br/> podebug.podebug(format="%3f %4F %5b %6B %7d %8s "),<br/> podebug.podebug(format="%cf %cF %cb %cB %cd %cs "),<br/> podebug.podebug(format="%3cf %4cF %5cb %6cB %7cd %8cs "),)<br/> results = ["85a9 Test msgstr 1", "a15d Test msgstr 2", "6398 Test msgstr 3",<br/> "85a917.Test msgstr 1", "a15d71.Test msgstr 2", "639898.Test msgstr 3",<br/> "zzz85a9170.zzzTest msgstr 1", "zzza15d718.zzzTest msgstr 2", "zzz639898c.zzzTest msgstr 3",<br/> "fullpath/to/fakefile fullpath/to/fakefile.po fakefile fakefile.po fullpath/to full-t-fake Test msgstr 1",<br/> "fullpath/to/fakefile fullpath/to/fakefile.po fakefile fakefile.po fullpath/to full-t-fake Test msgstr 2",<br/> "fullpath/to/fakefile fullpath/to/fakefile.po fakefile fakefile.po fullpath/to full-t-fake Test msgstr 3",<br/> "ful full fakef fakefi fullpat full-t-f Test msgstr 1",<br/> "ful full fakef fakefi fullpat full-t-f Test msgstr 2",<br/> "ful full fakef fakefi fullpat full-t-f Test msgstr 3",<br/> "fllpth/t/fkfl fllpth/t/fkfl.p fkfl fkfl.p fllpth/t fll-t-fk Test msgstr 1",<br/> "fllpth/t/fkfl fllpth/t/fkfl.p fkfl fkfl.p fllpth/t fll-t-fk Test msgstr 2",<br/> "fllpth/t/fkfl fllpth/t/fkfl.p fkfl fkfl.p fllpth/t fll-t-fk Test msgstr 3",<br/> "fll fllp fkfl fkfl.p fllpth/ fll-t-fk Test msgstr 1",<br/> "fll fllp fkfl fkfl.p fllpth/ fll-t-fk Test msgstr 2",<br/> "fll fllp fkfl fkfl.p fllpth/ fll-t-fk Test msgstr 3"]<br/> <br/> for debug in debugs:<br/> for po_doc in po_docs:<br/> postore = po.pofile(po_doc.encode('utf-8'))<br/> postore.filename = "fullpath/to/fakefile.po"<br/> po_out = debug.convertstore(postore)<br/> in_unit = postore.units[0]<br/> out_unit = po_out.units[0]<br/> assert in_unit.source == out_unit.source<br/>&gt; assert out_unit.target == results.pop(0)<br/><span class="error">E AssertionError: assert 'fullpath/to/...Test msgstr 1' == 'fullpath/to/f...Test msgstr 1'</span><br/><span class="error">E Skipping 73 identical leading characters in diff, use -v to show</span><br/><span class="error">E - h/to full-fake Test msgstr 1</span><br/><span class="error">E + h/to full-t-fake Test msgstr 1</span><br/><span class="error">E ? ++</span><br/><br/>..\..\translate\tools\test_podebug.py:165: AssertionError<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/tools/test_pretranslate.py::TestPretranslateCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.tools.test_pretranslate.TestPretranslateCommand object at 0x0000000009A243C8&gt;<br/><br/> def test_help(self):<br/> """tests getting help"""<br/>&gt; options = test_convert.TestConvertCommand.test_help(self)<br/><br/>..\..\translate\tools\test_pretranslate.py:310: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>..\..\translate\convert\test_convert.py:123: in test_help<br/> options = self.help_check(options, "--progress=PROGRESS")<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.tools.test_pretranslate.TestPretranslateCommand object at 0x0000000009A243C8&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
Fill localization files with suggested translations based on translation
memory and existing translations. See:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/pretranslate.html for examples and usage
instructions.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot, pot, xlf formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot, xlf formats
-t TEMPLATE, --template=TEMPLATE
read from TEMPLATE in po, pot, xlf formats
-S, --timestamp skip conversion if the output file has newer timestamp
--tm=TM The file to use as translation memory when fuzzy
matching
-s MIN_SIMILARITY, --similarity=MIN_SIMILARITY
The minimum similarity for inclusion (default: 75%)
--nofuzzymatching Disable fuzzy matching
</div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">translate/tools/test_pypo2phppo.py::TestPyPo2PhpPoCommand::()::test_help</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.tools.test_pypo2phppo.TestPyPo2PhpPoCommand object at 0x0000000009A3D860&gt;<br/><br/> def test_help(self):<br/> """tests getting help (returning the help_string so further tests can be done)"""<br/> stdout = sys.stdout<br/> helpfile = self.open_testfile("help.txt", "w")<br/> sys.stdout = helpfile<br/> try:<br/> pytest.raises(SystemExit, self.run_command, help=True)<br/> finally:<br/> sys.stdout = stdout<br/> helpfile.close()<br/> help_string = self.read_testfile("help.txt").decode('utf-8')<br/> print(help_string)<br/> convertsummary = self.convertmodule.__doc__.split("\n")[0]<br/> # the convertsummary might be wrapped. this will probably unwrap it<br/> assert convertsummary in help_string.replace("\n", " ")<br/> usageline = help_string[:help_string.find("\n")]<br/> # Different versions of optparse might contain either upper or<br/> # lowercase versions of 'Usage:' and 'Options:', so we need to take<br/> # that into account<br/> assert (usageline.startswith("Usage: ") or usageline.startswith("usage: ")) \<br/> and "[--version] [-h|--help]" in usageline<br/> options = help_string[help_string.find("ptions:\n"):]<br/> options = options[options.find("\n")+1:]<br/>&gt; options = self.help_check(options, "--progress=PROGRESS")<br/><br/>..\..\translate\convert\test_convert.py:123: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.tools.test_pypo2phppo.TestPyPo2PhpPoCommand object at 0x0000000009A3D860&gt;<br/>options = '', option = '--progress=PROGRESS', last = False<br/><br/> def help_check(self, options, option, last=False):<br/> """check that a help string occurs and remove it"""<br/>&gt; assert option in options<br/><span class="error">E AssertionError: assert '--progress=PROGRESS' in ''</span><br/><br/>..\..\translate\convert\test_convert.py:90: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>Usage: pytest [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-S|--timestamp]
Convert Python format .po files to PHP format .po files.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL
show errorlevel as: none, message, exception,
traceback
-i INPUT, --input=INPUT
read from INPUT in po, pot formats
-x EXCLUDE, --exclude=EXCLUDE
exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT
write to OUTPUT in po, pot formats
-S, --timestamp skip conversion if the output file has newer timestamp
</div></td></tr></tbody>
<tbody class="xfailed results-table-row">
<tr>
<td class="col-result">XFailed</td>
<td class="col-name">translate/convert/test_dtd2po.py::TestDTD2PO::()::test_accelerator_keys_not_in_sentence</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_dtd2po.TestDTD2PO object at 0x0000000006AB07B8&gt;<br/><br/> @mark.xfail(reason="Not Implemented")<br/> def test_accelerator_keys_not_in_sentence(self):<br/> """tests to ensure that we can manage accelerator keys that are not part of the transated sentence eg in Chinese"""<br/> dtdtemplate = '''&lt;!ENTITY useAutoScroll.label "Use autoscrolling"&gt;<br/> &lt;!ENTITY useAutoScroll.accesskey "a"&gt;'''<br/> dtdlanguage = '''&lt;!ENTITY useAutoScroll.label "使用自動捲動(Autoscrolling)"&gt;<br/> &lt;!ENTITY useAutoScroll.accesskey "a"&gt;'''<br/> pofile = self.dtd2po(dtdlanguage, dtdtemplate)<br/> print(pofile)<br/>&gt; assert pofile.units[1].target == "使用自動捲動(&amp;Autoscrolling)"<br/><span class="error">E AssertionError: assert '使用自動捲動(&amp;Autoscrolling)' == '\xe4\xbd\xbf\xe7...(&amp;Autoscrolling)'</span><br/><span class="error">E - 使用自動捲動(&amp;Autoscrolling)</span><br/><span class="error">E + \xe4\xbd\xbf\xe7\x94\xa8\xe8\x87\xaa\xe5\x8b\x95\xe6\x8d\xb2\xe5\x8b\x95(&amp;Autoscrolling)</span><br/><br/>..\..\translate\convert\test_dtd2po.py:319: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>#. extracted from ,
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-13 14:59-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME &lt;EMAIL@ADDRESS&gt;\n"
"Language-Team: LANGUAGE &lt;LL@li.org&gt;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Accelerator-Marker: &amp;\n"
"X-Generator: Translate Toolkit 2.1.0\n"
"X-Merge-On: location\n"
#: useAutoScroll.label
#: useAutoScroll.accesskey
msgid "Use &amp;autoscrolling"
msgstr "使用自動捲動(&amp;Autoscrolling)"
----------------------------- Captured stderr call -----------------------------<br/>Warning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
</div></td></tr></tbody>
<tbody class="xfailed results-table-row">
<tr>
<td class="col-result">XFailed</td>
<td class="col-name">translate/convert/test_dtd2po.py::TestDTD2POCommand::()::test_accelerator_keys_not_in_sentence</td>
<td class="col-duration">0.01</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_dtd2po.TestDTD2POCommand object at 0x0000000006B217F0&gt;<br/><br/> @mark.xfail(reason="Not Implemented")<br/> def test_accelerator_keys_not_in_sentence(self):<br/> """tests to ensure that we can manage accelerator keys that are not part of the transated sentence eg in Chinese"""<br/> dtdtemplate = '''&lt;!ENTITY useAutoScroll.label "Use autoscrolling"&gt;<br/> &lt;!ENTITY useAutoScroll.accesskey "a"&gt;'''<br/> dtdlanguage = '''&lt;!ENTITY useAutoScroll.label "使用自動捲動(Autoscrolling)"&gt;<br/> &lt;!ENTITY useAutoScroll.accesskey "a"&gt;'''<br/> pofile = self.dtd2po(dtdlanguage, dtdtemplate)<br/> print(pofile)<br/>&gt; assert pofile.units[1].target == "使用自動捲動(&amp;Autoscrolling)"<br/><span class="error">E AssertionError: assert '使用自動捲動(&amp;Autoscrolling)' == '\xe4\xbd\xbf\xe7...(&amp;Autoscrolling)'</span><br/><span class="error">E - 使用自動捲動(&amp;Autoscrolling)</span><br/><span class="error">E + \xe4\xbd\xbf\xe7\x94\xa8\xe8\x87\xaa\xe5\x8b\x95\xe6\x8d\xb2\xe5\x8b\x95(&amp;Autoscrolling)</span><br/><br/>..\..\translate\convert\test_dtd2po.py:319: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>#. extracted from ,
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-13 14:59-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME &lt;EMAIL@ADDRESS&gt;\n"
"Language-Team: LANGUAGE &lt;LL@li.org&gt;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Accelerator-Marker: &amp;\n"
"X-Generator: Translate Toolkit 2.1.0\n"
"X-Merge-On: location\n"
#: useAutoScroll.label
#: useAutoScroll.accesskey
msgid "Use &amp;autoscrolling"
msgstr "使用自動捲動(&amp;Autoscrolling)"
</div></td></tr></tbody>
<tbody class="xfailed results-table-row">
<tr>
<td class="col-result">XFailed</td>
<td class="col-name">translate/convert/test_html2po.py::TestHTML2PO::()::test_nested_tags</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_html2po.TestHTML2PO object at 0x0000000006B98048&gt;<br/><br/> @mark.xfail(reason="Not Implemented")<br/> def test_nested_tags(self):<br/> """check that we can extract items within nested tags"""<br/> markup = "&lt;div&gt;&lt;p&gt;Extract this&lt;/p&gt;And this&lt;/div&gt;"<br/> pofile = self.html2po(markup)<br/>&gt; self.countunits(pofile, 2)<br/><br/>..\..\translate\convert\test_html2po.py:278: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_html2po.TestHTML2PO object at 0x0000000006B98048&gt;<br/>pofile = &lt;translate.storage.pypo.pofile object at 0x0000000006B98080&gt;<br/>expected = 2<br/><br/> def countunits(self, pofile, expected):<br/> """helper to check that we got the expected number of messages"""<br/> actual = len(pofile.units)<br/> if actual &gt; 0:<br/> if pofile.units[0].isheader():<br/> actual = actual - 1<br/> print(pofile)<br/>&gt; assert actual == expected<br/><span class="error">E assert 1 == 2</span><br/><br/>..\..\translate\convert\test_html2po.py:32: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-13 14:59-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME &lt;EMAIL@ADDRESS&gt;\n"
"Language-Team: LANGUAGE &lt;LL@li.org&gt;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Translate Toolkit 2.1.0\n"
#: None+div.p:1-6
msgid "Extract this"
msgstr ""
</div></td></tr></tbody>
<tbody class="xfailed results-table-row">
<tr>
<td class="col-result">XFailed</td>
<td class="col-name">translate/convert/test_html2po.py::TestHTML2POCommand::()::test_nested_tags</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_html2po.TestHTML2POCommand object at 0x0000000006B4BBE0&gt;<br/><br/> @mark.xfail(reason="Not Implemented")<br/> def test_nested_tags(self):<br/> """check that we can extract items within nested tags"""<br/> markup = "&lt;div&gt;&lt;p&gt;Extract this&lt;/p&gt;And this&lt;/div&gt;"<br/> pofile = self.html2po(markup)<br/>&gt; self.countunits(pofile, 2)<br/><br/>..\..\translate\convert\test_html2po.py:278: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/><br/>self = &lt;translate.convert.test_html2po.TestHTML2POCommand object at 0x0000000006B4BBE0&gt;<br/>pofile = &lt;translate.storage.pypo.pofile object at 0x0000000006B4BC18&gt;<br/>expected = 2<br/><br/> def countunits(self, pofile, expected):<br/> """helper to check that we got the expected number of messages"""<br/> actual = len(pofile.units)<br/> if actual &gt; 0:<br/> if pofile.units[0].isheader():<br/> actual = actual - 1<br/> print(pofile)<br/>&gt; assert actual == expected<br/><span class="error">E assert 1 == 2</span><br/><br/>..\..\translate\convert\test_html2po.py:32: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-13 14:59-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME &lt;EMAIL@ADDRESS&gt;\n"
"Language-Team: LANGUAGE &lt;LL@li.org&gt;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Translate Toolkit 2.1.0\n"
#: None+div.p:1-6
msgid "Extract this"
msgstr ""
</div></td></tr></tbody>
<tbody class="xfailed results-table-row">
<tr>
<td class="col-result">XFailed</td>
<td class="col-name">translate/convert/test_po2html.py::TestPO2Html::()::test_entities</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2html.TestPO2Html object at 0x0000000006EFA518&gt;<br/><br/> @mark.xfail(reason="Not Implemented")<br/> def test_entities(self):<br/> """Tests that entities are handled correctly"""<br/> htmlsource = '&lt;p&gt;5 less than 6&lt;/p&gt;'<br/> posource = '#:html:3\nmsgid "5 less than 6"\nmsgstr "5 &lt; 6"\n'<br/> htmlexpected = '&lt;p&gt;5 &amp;lt; 6&lt;/p&gt;'<br/>&gt; assert htmlexpected in self.converthtml(posource, htmlsource)<br/><span class="error">E assert '&lt;p&gt;5 &amp;lt; 6&lt;/p&gt;' in '&lt;p&gt;5 &lt; 6&lt;/p&gt;'</span><br/><span class="error">E + where '&lt;p&gt;5 &lt; 6&lt;/p&gt;' = &lt;bound method TestPO2Html.converthtml of &lt;translate.convert.test_po2html.TestPO2Html object at 0x0000000006EFA518&gt;&gt;('#:html:3\nmsgid "5 less than 6"\nmsgstr "5 &lt; 6"\n', '&lt;p&gt;5 less than 6&lt;/p&gt;')</span><br/><span class="error">E + where &lt;bound method TestPO2Html.converthtml of &lt;translate.convert.test_po2html.TestPO2Html object at 0x0000000006EFA518&gt;&gt; = &lt;translate.convert.test_po2html.TestPO2Html object at 0x0000000006EFA518&gt;.converthtml</span><br/><br/>..\..\translate\convert\test_po2html.py:66: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>#:html:3
msgid "5 less than 6"
msgstr "5 &lt; 6"
&lt;p&gt;5 &lt; 6&lt;/p&gt;
</div></td></tr></tbody>
<tbody class="xfailed results-table-row">
<tr>
<td class="col-result">XFailed</td>
<td class="col-name">translate/convert/test_po2html.py::TestPO2Html::()::test_escapes</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2html.TestPO2Html object at 0x0000000006EFA898&gt;<br/><br/> @mark.xfail(reason="Not Implemented")<br/> def test_escapes(self):<br/> """Tests that PO escapes are correctly handled"""<br/> htmlsource = '&lt;div&gt;Row 1&lt;br /&gt;Row 2&lt;/div&gt;'<br/> posource = '#: html:3\nmsgid "Row 1\\n"\n"Row 2"\nmsgstr "Ry 1\\n"\n"Ry 2"\n'<br/> htmlexpected = '&lt;div&gt;Ry 1&lt;br /&gt;Ry 2&lt;/div&gt;'<br/>&gt; assert htmlexpected in self.converthtml(posource, htmlsource)<br/><span class="error">E assert '&lt;div&gt;Ry 1&lt;br /&gt;Ry 2&lt;/div&gt;' in '&lt;div&gt;Row 1&lt;br /&gt;Row 2&lt;/div&gt;'</span><br/><span class="error">E + where '&lt;div&gt;Row 1&lt;br /&gt;Row 2&lt;/div&gt;' = &lt;bound method TestPO2Html.converthtml of &lt;translate.convert.test_po2html.TestPO2Html object at 0x0000000006EFA898&gt;&gt;('#: html:3\nmsgid "Row 1\\n"\n"Row 2"\nmsgstr "Ry 1\\n"\n"Ry 2"\n', '&lt;div&gt;Row 1&lt;br /&gt;Row 2&lt;/div&gt;')</span><br/><span class="error">E + where &lt;bound method TestPO2Html.converthtml of &lt;translate.convert.test_po2html.TestPO2Html object at 0x0000000006EFA898&gt;&gt; = &lt;translate.convert.test_po2html.TestPO2Html object at 0x0000000006EFA898&gt;.converthtml</span><br/><br/>..\..\translate\convert\test_po2html.py:79: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>#: html:3
msgid "Row 1\n"
"Row 2"
msgstr "Ry 1\n"
"Ry 2"
&lt;div&gt;Row 1&lt;br /&gt;Row 2&lt;/div&gt;
</div></td></tr></tbody>
<tbody class="xfailed results-table-row">
<tr>
<td class="col-result">XFailed</td>
<td class="col-name">translate/convert/test_po2html.py::TestPO2HtmlCommand::()::test_entities</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2html.TestPO2HtmlCommand object at 0x0000000006F547B8&gt;<br/><br/> @mark.xfail(reason="Not Implemented")<br/> def test_entities(self):<br/> """Tests that entities are handled correctly"""<br/> htmlsource = '&lt;p&gt;5 less than 6&lt;/p&gt;'<br/> posource = '#:html:3\nmsgid "5 less than 6"\nmsgstr "5 &lt; 6"\n'<br/> htmlexpected = '&lt;p&gt;5 &amp;lt; 6&lt;/p&gt;'<br/>&gt; assert htmlexpected in self.converthtml(posource, htmlsource)<br/><span class="error">E assert '&lt;p&gt;5 &amp;lt; 6&lt;/p&gt;' in '&lt;p&gt;5 &lt; 6&lt;/p&gt;'</span><br/><span class="error">E + where '&lt;p&gt;5 &lt; 6&lt;/p&gt;' = &lt;bound method TestPO2HtmlCommand.converthtml of &lt;translate.convert.test_po2html.TestPO2HtmlCommand object at 0x0000000006F547B8&gt;&gt;('#:html:3\nmsgid "5 less than 6"\nmsgstr "5 &lt; 6"\n', '&lt;p&gt;5 less than 6&lt;/p&gt;')</span><br/><span class="error">E + where &lt;bound method TestPO2HtmlCommand.converthtml of &lt;translate.convert.test_po2html.TestPO2HtmlCommand object at 0x0000000006F547B8&gt;&gt; = &lt;translate.convert.test_po2html.TestPO2HtmlCommand object at 0x0000000006F547B8&gt;.converthtml</span><br/><br/>..\..\translate\convert\test_po2html.py:66: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>#:html:3
msgid "5 less than 6"
msgstr "5 &lt; 6"
&lt;p&gt;5 &lt; 6&lt;/p&gt;
</div></td></tr></tbody>
<tbody class="xfailed results-table-row">
<tr>
<td class="col-result">XFailed</td>
<td class="col-name">translate/convert/test_po2html.py::TestPO2HtmlCommand::()::test_escapes</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;translate.convert.test_po2html.TestPO2HtmlCommand object at 0x0000000006F77D30&gt;<br/><br/> @mark.xfail(reason="Not Implemented")<br/> def test_escapes(self):<br/> """Tests that PO escapes are correctly handled"""<br/> htmlsource = '&lt;div&gt;Row 1&lt;br /&gt;Row 2&lt;/div&gt;'<br/> posource = '#: html:3\nmsgid "Row 1\\n"\n"Row 2"\nmsgstr "Ry 1\\n"\n"Ry 2"\n'<br/> htmlexpected = '&lt;div&gt;Ry 1&lt;br /&gt;Ry 2&lt;/div&gt;'<br/>&gt; assert htmlexpected in self.converthtml(posource, htmlsource)<br/><span class="error">E assert '&lt;div&gt;Ry 1&lt;br /&gt;Ry 2&lt;/div&gt;' in '&lt;div&gt;Row 1&lt;br /&gt;Row 2&lt;/div&gt;'</span><br/><span class="error">E + where '&lt;div&gt;Row 1&lt;br /&gt;Row 2&lt;/div&gt;' = &lt;bound method TestPO2HtmlCommand.converthtml of &lt;translate.convert.test_po2html.TestPO2HtmlCommand object at 0x0000000006F77D30&gt;&gt;('#: html:3\nmsgid "Row 1\\n"\n"Row 2"\nmsgstr "Ry 1\\n"\n"Ry 2"\n', '&lt;div&gt;Row 1&lt;br /&gt;Row 2&lt;/div&gt;')</span><br/><span class="error">E + where &lt;bound method TestPO2HtmlCommand.converthtml of &lt;translate.convert.test_po2html.TestPO2HtmlCommand object at 0x0000000006F77D30&gt;&gt; = &lt;translate.convert.test_po2html.TestPO2HtmlCommand object at 0x0000000006F77D30&gt;.converthtml</span><br/><br/>..\..\translate\convert\test_po2html.py:79: AssertionError<br/>----------------------------- Captured stdout call -----------------------------<br/>#: html:3
msgid "Row 1\n"
"Row 2"