code stringlengths 3 6.57k |
|---|
self.assertEqual(expected, data[fmt]) |
test_export_indentation(self) |
self._random_temp_filename() |
self.exported_data(items, settings) |
self.assertEqual(row['expected'], data[row['format']]) |
test_init_exporters_storages_with_crawler(self) |
self._random_temp_filename() |
self.exported_data(items=[], settings=settings) |
self.assertTrue(FromCrawlerCsvItemExporter.init_with_crawler) |
self.assertTrue(FromCrawlerFileFeedStorage.init_with_crawler) |
test_pathlib_uri(self) |
Path(self._random_temp_filename() |
self.exported_no_data(settings) |
self.assertEqual(data['csv'], b'') |
Copyright (c) |
TestExtraesiaSettings(unittest.TestCase) |
get_version(filename) |
open(filename) |
line.startswith('__version__') |
line.split('=') |
strip() |
ValueError("Cannot extract version from %s" % filename) |
get_version("better_apidoc.py") |
Exc(object) |
url(r'^$', views.index, name='django_daraja_index') |
url(r'^oauth/success', views.oauth_success, name='test_oauth_success') |
url(r'^stk-push/success', views.stk_push_success, name='test_stk_push_success') |
url(r'^business-payment/success', views.business_payment_success, name='test_business_payment_success') |
url(r'^salary-payment/success', views.salary_payment_success, name='test_salary_payment_success') |
url(r'^promotion-payment/success', views.promotion_payment_success, name='test_promotion_payment_success') |
url(r'^$', views.index, name='index') |
url(r'^tests/', include(test_patterns) |
os.path.join(metadata_dir, recipe) |
os.path.join(metadata_dir, "empty_sections") |
represent_ordereddict(dumper, data) |
data.items() |
dumper.represent_data(item_key) |
dumper.represent_data(item_value) |
value.append((node_key, node_value) |
yaml.nodes.MappingNode(u'tag:yaml.org,2002:map', value) |
yaml.add_representer(OrderedDict, represent_ordereddict) |
AnacondaClientArgs(object) |
__init__(self, specs, token=None, site=None, log_level=logging.INFO, force=False) |
parse_specs(specs) |
describe_root(cwd=None) |
os.path.abspath(os.path.join(os.path.dirname(__file__) |
check_output_env(["git", "describe", "--abbrev=0"], cwd=cwd) |
rstrip() |
tag.decode("utf-8") |
pytest.fixture(params=[dirname for dirname in os.listdir(metadata_dir) |
is_valid_dir(metadata_dir, dirname) |
recipe(request) |
os.path.join(metadata_dir, request.param) |
test_recipe_builds(recipe, testing_config, testing_workdir, monkeypatch) |
monkeypatch.setenv("CONDA_TEST_VAR", "conda_test") |
monkeypatch.setenv("CONDA_TEST_VAR_2", "conda_test_2") |
api.build(recipe, config=testing_config) |
test_token_upload(testing_workdir, testing_metadata) |
uuid.uuid4() |
pytest.raises(NotFound) |
show.main(args) |
join([testing_metadata.name() |
api.build(testing_metadata) |
available (should raise if it doesn't) |
show.main(args) |
remove.main(args) |
pytest.raises(NotFound) |
show.main(args) |
pytest.mark.parametrize("service_name", ["binstar", "anaconda"]) |
test_no_anaconda_upload_condarc(service_name, testing_workdir, testing_config, capfd) |
api.build(empty_sections, config=testing_config) |
capfd.readouterr() |
test_git_describe_info_on_branch(testing_config) |
os.path.join(metadata_dir, "_git_describe_number_branch") |
api.render(recipe_path, config=testing_config) |
api.get_output_file_path(m) |
test_no_include_recipe_config_arg(testing_metadata) |
api.build(testing_metadata) |
package_has_file(outputs[0], "info/recipe/meta.yaml") |
api.build(testing_metadata, notest=True) |
package_has_file(output_file, "info/recipe/meta.yaml") |
test_no_include_recipe_meta_yaml(testing_metadata, testing_config) |
api.build(testing_metadata) |
package_has_file(outputs[0], "info/recipe/meta.yaml") |
api.build(os.path.join(metadata_dir, '_no_include_recipe') |
package_has_file(output_file, "info/recipe/meta.yaml") |
test_early_abort(testing_config, capfd) |
api.build(os.path.join(metadata_dir, '_test_early_abort') |
capfd.readouterr() |
test_output_build_path_git_source(testing_workdir, testing_config) |
os.path.join(metadata_dir, "source_git_jinja2") |
api.render(recipe_path, config=testing_config) |
api.get_output_file_paths(m) |
m.hash_dependencies() |
test_build_with_no_activate_does_not_activate() |
api.build(os.path.join(metadata_dir, '_set_env_var_no_activate_build') |
test_build_with_activate_does_activate() |
api.build(os.path.join(metadata_dir, '_set_env_var_activate_build') |
test_binary_has_prefix_files(testing_workdir, testing_config) |
api.build(os.path.join(metadata_dir, '_binary_has_prefix_files') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.