id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
32,500
manage_settings.py
infobyte_faraday/faraday/server/commands/manage_settings.py
""" Faraday Penetration Test IDE Copyright (C) 2021 Infobyte LLC (https://faradaysec.com/) See the file 'doc/LICENSE' for the license information """ # Standard library imports import json import sys # Related third party imports import click from flask import current_app # Local application imports from faraday.ser...
4,139
Python
.py
89
33.123596
115
0.557369
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,501
initdb.py
infobyte_faraday/faraday/server/commands/initdb.py
""" Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (https://faradaysec.com/) See the file 'doc/LICENSE' for the license information """ # Standard library imports import getpass import os import string import uuid import sys from configparser import ConfigParser, NoSectionError from random import SystemR...
20,708
Python
.py
426
35.037559
119
0.569968
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,502
nginx_config.py
infobyte_faraday/faraday/server/commands/nginx_config.py
""" Faraday Penetration Test IDE Copyright (C) 2020 Infobyte LLC (https://faradaysec.com/) See the file 'doc/LICENSE' for the license information """ # Standard library imports import sys from pathlib import Path # Related third party imports import click from jinja2 import Environment, FileSystemLoader def generat...
1,588
Python
.py
32
42.78125
119
0.654218
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,503
ingestelk.py
infobyte_faraday/faraday/server/commands/ingestelk.py
import sys import uuid from datetime import datetime import validators from elasticsearch import Elasticsearch, helpers, __version__ import click from sqlalchemy.orm import joinedload from faraday.server.api.modules.vulns import VulnerabilitySchema from faraday.server.models import Workspace, VulnerabilityGeneric fro...
5,844
Python
.py
127
33.149606
120
0.577018
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,504
app_urls.py
infobyte_faraday/faraday/server/commands/app_urls.py
""" Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information """ from pathlib import Path from flask import current_app import yaml import re from apispec import APISpec from apispec.ext.marshmallow import MarshmallowPlugin fro...
4,123
Python
.py
99
32.606061
96
0.605757
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,505
dispatcher.py
infobyte_faraday/faraday/server/websockets/dispatcher.py
""" Faraday Penetration Test IDE Copyright (C) 2021 Infobyte LLC (https://faradaysec.com/) See the file 'doc/LICENSE' for the license information """ # Standard library imports import logging # Related third party imports import itsdangerous from flask import current_app, request from faraday.server.api.modules.webs...
4,341
Python
.py
100
33.81
98
0.632015
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,506
crontab.py
infobyte_faraday/faraday/server/threads/crontab.py
""" Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (https://faradaysec.com/) See the file 'doc/LICENSE' for the license information """ # Standard library imports import datetime import logging import threading import time from time import sleep # Related third party imports from croniter import cronite...
8,337
Python
.py
176
34.4375
114
0.583569
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,507
conftest.py
infobyte_faraday/tests/conftest.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from tempfile import NamedTemporaryFile import json import inspect import pytest from factory import Factory from flask.testing import FlaskClient from flask_prin...
10,771
Python
.py
274
32.890511
144
0.66865
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,508
test_api_hosts_context.py
infobyte_faraday/tests/test_api_hosts_context.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import operator from io import BytesIO from posixpath import join from urllib.parse import urljoin from random import choice from hypothesis import given, strategi...
43,812
Python
.py
847
39.433294
134
0.593647
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,509
test_api_services.py
infobyte_faraday/tests/test_api_services.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' """Tests for many API endpoints that do not depend on workspace_name""" try: from urllib import urlencode except ImportError: from urllib.parse import urlen...
13,798
Python
.py
327
30.889908
116
0.564603
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,510
test_api_agent.py
infobyte_faraday/tests/test_api_agent.py
""" Faraday Penetration Test IDE Copyright (C) 2019 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information """ from unittest import mock from posixpath import join from urllib.parse import urljoin import pyotp import pytest from faraday.server.api.modules.agent import Agen...
14,838
Python
.py
370
29.867568
97
0.590956
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,511
test_api_vulnerability_template.py
infobyte_faraday/tests/test_api_vulnerability_template.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from datetime import datetime from io import BytesIO import pytest from faraday.server.api.modules.vulnerability_template import VulnerabilityTemplateView from tes...
27,935
Python
.py
552
40.907609
375
0.62473
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,512
test_api_hosts.py
infobyte_faraday/tests/test_api_hosts.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import operator from io import BytesIO from posixpath import join import pytz from urllib.parse import urlencode, urljoin from random import choice from sqlalchem...
53,910
Python
.py
1,095
36.857534
134
0.575413
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,513
test_api_upload_reports.py
infobyte_faraday/tests/test_api_upload_reports.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import pytest from io import BytesIO from tests.conftest import TEST_DATA_PATH from tests.factories import WorkspaceFactory @pytest.mark.usefixtures('logged_use...
1,912
Python
.py
50
29.54
87
0.608672
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,514
test_command_change_password.py
infobyte_faraday/tests/test_command_change_password.py
from flask_security.utils import hash_password, verify_password from faraday.server.commands.change_password import changes_password from faraday.server.models import User from tests.factories import UserFactory def test_changes_password_command(session): UserFactory.create( username='test_change_pass', ...
605
Python
.py
13
42.076923
68
0.764906
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,515
test_api_export_data.py
infobyte_faraday/tests/test_api_export_data.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import pytest from lxml.etree import fromstring from tests.conftest import TEST_DATA_PATH from tests.factories import ( WorkspaceFactory, HostFactory, ...
5,329
Python
.py
124
30.258065
119
0.548188
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,516
test_server_utils_filters.py
infobyte_faraday/tests/test_server_utils_filters.py
import pytest from marshmallow.exceptions import ValidationError from faraday.server.utils.filters import FilterSchema from faraday.server.utils.filters import FlaskRestlessSchema class TestFilters: def test_restless_using_group_by(self): test_filter = { "group_by": [ {"fiel...
8,673
Python
.py
224
23.8125
97
0.395037
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,517
test_api_info.py
infobyte_faraday/tests/test_api_info.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import pytest class TestAPIInfoEndpoint: def test_api_info_public(self, test_client): response = test_client.get('v3/info') assert response....
1,129
Python
.py
27
35.481481
62
0.670018
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,518
test_api_comment.py
infobyte_faraday/tests/test_api_comment.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from faraday.server.api.modules.comments import CommentView from faraday.server.models import Comment from tests.factories import ServiceFactory from tests.test_ap...
6,201
Python
.py
118
43.355932
121
0.655889
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,519
test_model_events.py
infobyte_faraday/tests/test_model_events.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import pytest from tests.factories import HostFactory, ServiceFactory from faraday.server.models import Host, Workspace def test_child_parent_verification_event_...
2,239
Python
.py
53
34.584906
79
0.704011
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,520
test_api_search_filter.py
infobyte_faraday/tests/test_api_search_filter.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from random import randrange import pytest from tests.factories import SearchFilterFactory, UserFactory from tests.test_api_non_workspaced_base import ( ReadW...
4,837
Python
.py
102
40.029412
102
0.695135
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,521
test_api_pagination.py
infobyte_faraday/tests/test_api_pagination.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' """Generic test mixins for APIs with pagination enabled when listing""" import pytest try: from urllib import urlencode except ImportError as e: from url...
4,387
Python
.py
96
36.572917
76
0.637959
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,522
test_api_global_commands.py
infobyte_faraday/tests/test_api_global_commands.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' """Tests for many API endpoints that do not depend on workspace_name""" import datetime import pytest from tests import factories from tests.test_api_non_workspace...
4,233
Python
.py
94
36.765957
98
0.641473
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,523
test_config_configuration.py
infobyte_faraday/tests/test_config_configuration.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information '''
156
Python
.py
5
30
62
0.766667
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,524
test_model_fields.py
infobyte_faraday/tests/test_model_fields.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from pathlib import Path from faraday.server.fields import FaradayUploadedFile TEST_DATA_PATH = Path(__file__).parent / 'data' def test_html_content_type_is_no...
1,183
Python
.py
25
41.88
69
0.683522
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,525
test_api_custom_fields.py
infobyte_faraday/tests/test_api_custom_fields.py
import pytest from tests.factories import CustomFieldsSchemaFactory from tests.test_api_non_workspaced_base import ReadWriteAPITests, BulkDeleteTestsMixin from faraday.server.api.modules.custom_fields import CustomFieldsSchemaView from faraday.server.models import ( CustomFieldsSchema ) @pytest.mark.usefixtures...
3,164
Python
.py
71
35.28169
111
0.626745
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,526
test_api_auth.py
infobyte_faraday/tests/test_api_auth.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import base64 import pytest from tests import factories from flask_security.utils import hash_password from faraday.server.api.modules.websocket_auth import decode...
4,749
Python
.py
111
34.171171
86
0.641788
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,527
test_api_workflow.py
infobyte_faraday/tests/test_api_workflow.py
import random from unittest import mock import pytest import sqlalchemy from faraday.server.api.modules.workflow import JobView, TaskView, PipelineView, PipelineSchema, fields_lookup from faraday.server.models import Workflow, Action, db, Pipeline from faraday.server.utils.workflows import _process_entry, WORKFLOW_QU...
35,899
Python
.py
770
36.390909
119
0.603414
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,528
test_api_get_exploits.py
infobyte_faraday/tests/test_api_get_exploits.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import pytest @pytest.mark.skip(reason='occassionaly timeouts') @pytest.mark.usefixtures('logged_user') class TestGetExploits(): def test_get_exploit(self, t...
992
Python
.py
25
34.12
62
0.667014
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,529
test_api_workspaced_base.py
infobyte_faraday/tests/test_api_workspaced_base.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from posixpath import join """Generic tests for APIs prefixed with a workspace_name""" import pytest from sqlalchemy.orm.util import was_deleted from faraday.serv...
25,475
Python
.py
518
37.888031
109
0.605602
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,530
test_api_general.py
infobyte_faraday/tests/test_api_general.py
import re from flask import current_app placeholders = { r".*(<int:.*>).*": "1" } def replace_placeholders(rule: str): for key, value in placeholders.items(): match = re.match(key, rule) if match: for placeholder in match.groups(): rule = rule.replace(placeholder,...
1,842
Python
.py
42
37.47619
119
0.66257
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,531
test_api_workspace.py
infobyte_faraday/tests/test_api_workspace.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from datetime import date import time from urllib.parse import urljoin import pytest from posixpath import join from faraday.server.models import Workspace, Scope...
29,059
Python
.py
635
33.007874
124
0.536269
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,532
test_api_activity_feed.py
infobyte_faraday/tests/test_api_activity_feed.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import datetime import pytest from tests.factories import (WorkspaceFactory, VulnerabilityFactory, Comman...
5,468
Python
.py
126
32.920635
126
0.627885
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,533
test_marshmallow_fields.py
infobyte_faraday/tests/test_marshmallow_fields.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import time import datetime import pytest from collections import namedtuple from marshmallow import Schema, fields, ValidationError from faraday.server.schemas im...
6,612
Python
.py
160
33.04375
79
0.61904
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,534
test_api_scheduling.py
infobyte_faraday/tests/test_api_scheduling.py
""" Faraday Penetration Test IDE Copyright (C) 2019 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information """ from unittest import mock import pytest from faraday.server.api.modules.agents_schedule import AgentsScheduleView from faraday.server.models import AgentsSchedule...
5,752
Python
.py
108
42.194444
109
0.647917
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,535
test_api_login.py
infobyte_faraday/tests/test_api_login.py
import pytest from flask_security.utils import hash_password import jwt import time from flask import current_app from faraday.server.models import User from tests import factories class TestLogin: def test_case_bug_with_username(self, test_client, session): """ When the user case does not ma...
8,215
Python
.py
199
31.075377
96
0.593609
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,536
test_api_services_context.py
infobyte_faraday/tests/test_api_services_context.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' """Tests for many API endpoints that do not depend on workspace_name""" import pytest from faraday.server.api.modules.services import ServiceView from tests import...
4,728
Python
.py
104
34.163462
121
0.593926
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,537
factories.py
infobyte_faraday/tests/factories.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import random import string import factory import datetime import itertools import unicodedata import uuid import time import pytz from factory.fuzzy import ( ...
23,123
Python
.py
630
29.203175
186
0.632592
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,538
test_socket_io.py
infobyte_faraday/tests/test_socket_io.py
from faraday.server.models import Executor, Agent from faraday.server.extensions import socketio from faraday.server.websockets.dispatcher import update_executors from tests.factories import AgentFactory, ExecutorFactory class TestSockets: def join_agent(self, test_client, session): agent = AgentFactory.c...
8,122
Python
.py
179
36.055866
96
0.633063
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,539
test_api_commands.py
infobyte_faraday/tests/test_api_commands.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' """Tests for many API endpoints that do not depend on workspace_name""" from posixpath import join as urljoin import datetime import pytest import time from tests...
18,349
Python
.py
397
33.299748
116
0.574068
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,540
test_common.py
infobyte_faraday/tests/test_common.py
#!/usr/bin/python ''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from faraday.server.models import Host, Service, Vulnerability import random def new_random_workspace_name(): return ("aworkspace" + "".joi...
1,635
Python
.py
34
41.529412
87
0.701011
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,541
test_api_docs.py
infobyte_faraday/tests/test_api_docs.py
import json import pytest import yaml from apispec import APISpec from apispec.ext.marshmallow import MarshmallowPlugin from apispec_webframeworks.flask import FlaskPlugin from flask import current_app from faraday.utils.faraday_openapi_plugin import FaradayAPIPlugin from faraday.server.commands.app_urls import opena...
3,458
Python
.py
79
34.101266
90
0.614764
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,542
test_ModelObjectFactory.py
infobyte_faraday/tests/test_ModelObjectFactory.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information '''
156
Python
.py
5
30
62
0.766667
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,543
__init__.py
infobyte_faraday/tests/__init__.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information '''
156
Python
.py
5
30
62
0.766667
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,544
test_api_credentials.py
infobyte_faraday/tests/test_api_credentials.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from urllib.parse import urljoin import pytest from tests import factories from tests.test_api_workspaced_base import ( ReadWriteAPITests, BulkUpdateTests...
11,640
Python
.py
242
36.847107
117
0.592596
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,545
test_python_config_imports.py
infobyte_faraday/tests/test_python_config_imports.py
import unittest class ImportTests(unittest.TestCase): def test_database(self): from faraday.server.config import database self.connection_string = database.connection_string def test_faraday_server(self): from faraday.server.config import faraday_server self.bind_address = fa...
550
Python
.py
13
35.076923
59
0.721805
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,546
test_migrations.py
infobyte_faraday/tests/test_migrations.py
from alembic.script import ScriptDirectory from alembic.config import Config from faraday.server.config import FARADAY_BASE class TestMigrations: def test_migrations_check_revision_hashes(self): config = Config() config.set_main_option( "script_location", str(FARADAY_BASE...
806
Python
.py
19
33.894737
81
0.660256
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,547
test_api_license.py
infobyte_faraday/tests/test_api_license.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' """Tests for many API endpoints that do not depend on workspace_name""" import pytest import pytz from hypothesis import given, strategies as st from tests impor...
3,125
Python
.py
75
34.72
76
0.648417
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,548
test_utils_database.py
infobyte_faraday/tests/test_utils_database.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import pytest from faraday.server.utils.database import get_unique_fields from faraday.server.models import ( License, Service, Host, Vulnerabilit...
2,396
Python
.py
63
31.666667
118
0.657634
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,549
test_debouncer.py
infobyte_faraday/tests/test_debouncer.py
from faraday.server.debouncer import debounce_workspace_update, Debouncer debouncer = Debouncer(wait=5) def test_debouncer_queue(): def _function_to_debounce(param1, param2): print(f"executing debounced function with params {param1} and {param2}") for param1, param2 in zip([1, 1, 1, 1, 1, 2, 2, 2, ...
745
Python
.py
14
47.571429
94
0.689751
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,550
test_server.py
infobyte_faraday/tests/test_server.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import time import unittest import pytest import jwt from flask import current_app from faraday.server.models import db def endpoint(): return 'OK' class...
3,361
Python
.py
75
38.066667
89
0.667076
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,551
test_api_settings.py
infobyte_faraday/tests/test_api_settings.py
""" Faraday Penetration Test IDE Copyright (C) 2019 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information """ import pytest from unittest import mock @mock.patch("faraday.settings.reports.ReportsSettings.must_restart_threads", False) @pytest.mark.usefixtures('logged_user')...
5,393
Python
.py
131
31.664122
83
0.592988
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,552
test_api_session.py
infobyte_faraday/tests/test_api_session.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import pytest from faraday.server.models import Role from tests.conftest import login_as @pytest.mark.usefixtures('logged_user') class TestSessionLogged: de...
1,082
Python
.py
25
38.12
102
0.695901
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,553
test_api_preferences.py
infobyte_faraday/tests/test_api_preferences.py
from tests.test_api_non_workspaced_base import GenericAPITest from tests.factories import UserFactory from faraday.server.models import User from faraday.server.api.modules.preferences import PreferencesView # pytest.fixture('logged_user') class TestPreferences(GenericAPITest): model = User factory = UserFact...
1,455
Python
.py
31
40
66
0.684136
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,554
test_api_bulk_create.py
infobyte_faraday/tests/test_api_bulk_create.py
from datetime import datetime, timedelta import time import pytest from flask import current_app from marshmallow import ValidationError from sqlalchemy import true, null import jwt from faraday.server.models import ( db, Command, CommandObject, Credential, Host, Service, Vulnerability, ...
54,648
Python
.py
1,150
40.148696
118
0.656311
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,555
test_api_vulnerability.py
infobyte_faraday/tests/test_api_vulnerability.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import csv import json import urllib import datetime from pathlib import Path from tempfile import NamedTemporaryFile from base64 import b64encode from io import Byt...
228,311
Python
.py
4,902
34.625255
236
0.575022
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,556
test_faraday_manage.py
infobyte_faraday/tests/test_faraday_manage.py
import os import pytest import subprocess from configparser import SafeConfigParser, DuplicateSectionError from pathlib import Path @pytest.mark.skip(reason="Temporal para que pase nix") def test_manage_migrate(): """ Run manage migrate with nothing to migrate The idea is to catch a broken migrat...
1,779
Python
.py
41
35.341463
101
0.661858
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,557
test_api_non_workspaced_base.py
infobyte_faraday/tests/test_api_non_workspaced_base.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from posixpath import join """Generic tests for APIs NOT prefixed with a workspace_name""" import pytest from sqlalchemy.orm.util import was_deleted API_PREFIX = ...
12,112
Python
.py
248
38.955645
138
0.617066
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,558
test_api_vulnerability_context.py
infobyte_faraday/tests/test_api_vulnerability_context.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import csv import json import urllib import datetime from pathlib import Path from tempfile import NamedTemporaryFile from base64 import b64encode from io import Byt...
162,390
Python
.py
3,561
33.045493
236
0.56106
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,559
test_server_config.py
infobyte_faraday/tests/test_server_config.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import re import random import string import tempfile from pathlib import Path from unittest import mock from faraday import __version__ from faraday.server.confi...
2,140
Python
.py
67
25.179104
75
0.504614
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,560
test_host.py
infobyte_faraday/tests/models/test_host.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import random import pytest from functools import partial from posixpath import join as urljoin from faraday.server.models import Hostname, Host from faraday.serv...
9,375
Python
.py
207
34.202899
129
0.60621
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,561
test_vulnerability.py
infobyte_faraday/tests/models/test_vulnerability.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import pytest from faraday.server.models import ( CommandObject, PolicyViolation, PolicyViolationVulnerabilityAssociation, Reference, ReferenceV...
9,685
Python
.py
218
33.683486
108
0.620759
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,562
test_cascades.py
infobyte_faraday/tests/models/test_cascades.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import pytest from contextlib import contextmanager from faraday.server.models import ( CommandObject, Comment, File, WorkspacePermission, ) def t...
8,302
Python
.py
211
29.815166
84
0.600496
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,563
test_file.py
infobyte_faraday/tests/models/test_file.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' import pytest from faraday.server.models import File from depot.manager import DepotManager from tests.conftest import TEST_DATA_PATH @pytest.fixture def depotfi...
2,140
Python
.py
46
39.847826
77
0.697406
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,564
test_workspace.py
infobyte_faraday/tests/models/test_workspace.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from faraday.server.models import db, Workspace from tests.factories import ( HostFactory, ServiceFactory, SourceCodeFactory, VulnerabilityFactory, ...
4,296
Python
.py
96
39.46875
90
0.743835
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,565
test_tag.py
infobyte_faraday/tests/models/test_tag.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from faraday.server.models import TagObject def test_vulnweb_tags(vulnerability_web_factory, tag_factory, session): # Use vuln web to ensure its parent is a s...
1,204
Python
.py
26
36.038462
79
0.630009
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,566
test_api_bulk_create.py
infobyte_faraday/tests/celery/test_api_bulk_create.py
from datetime import datetime, timedelta import time import pytest from celery import current_app as current_flask_app from faraday.server.models import ( db, Command, Host, Service, Workspace) from faraday.server.api.modules import bulk_create as bc host_data = { "ip": "127.0.0.1", "de...
3,424
Python
.py
101
29.633663
114
0.660709
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,567
model_check.py
infobyte_faraday/scripts/model_check.py
#!/usr/bin/env python3 import subprocess def check(source_branch: str, target_branch: str) -> None: child = subprocess.run( [ "git", "diff", "--compact-summary", f"{source_branch}..{target_branch}", "faraday/migrations/" ], stdout=subprocess.PIPE ) assert ch...
497
Python
.py
14
29.357143
70
0.622129
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,568
github_release.py
infobyte_faraday/scripts/github_release.py
#!/usr/bin/env python3 from pathlib import Path import os import requests import click import mimetypes VERSION = os.environ.get('FARADAY_VERSION') TOKEN = os.environ.get('GH_TOKEN') @click.command() @click.option("--deb-file", required=True, type=click.Path(exists=True, dir_okay=False, resolve_path=True)) @click.o...
1,697
Python
.py
42
34.857143
107
0.653519
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,569
merge-conflict-detector.py
infobyte_faraday/scripts/merge-conflict-detector.py
#!/usr/bin/env python3 # Faraday Penetration Test IDE # Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) # See the file 'doc/LICENSE' for the license information ''' Internal script used to detect merge conflicts to branch with our propiertary code. Not useful if you don't have access to the code of Far...
4,783
Python
.py
121
33.578512
109
0.671841
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,570
sanity_check_file.py
infobyte_faraday/scripts/sanity_check_file.py
#!/usr/bin/env python3 import argparse import os import subprocess parser = argparse.ArgumentParser() parser.add_argument('--mode', choices=['diff', 'ls'], default='diff') parser.add_argument('--local', action='store_true', default=False) args = parser.parse_args() ACTUAL_BRANCH = subprocess.run( ["git", "rev-par...
1,522
Python
.py
39
34.025641
79
0.656038
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,571
test_python_config_imports.py
infobyte_faraday/tests/test_python_config_imports.py
import unittest class ImportTests(unittest.TestCase): def test_database(self): from faraday.server.config import database self.connection_string = database.connection_string def test_faraday_server(self): from faraday.server.config import faraday_server self.bind_address = fa...
550
Python
.pyt
13
35.076923
59
0.721805
infobyte/faraday
4,852
893
45
GPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,572
.pylintrc
python-rope_rope/.pylintrc
# A settings file for running pylint on Rope. # Run pylint from the top-level Rope directory: `python -m pylint rope` # This file tested on pylint 2.14.4, Python 3.10.5, as reported by `python -m pylint --version`. [MASTER] # Add <file or directory> to the black list. A base name, not a path. ignore= .git # F...
6,773
Python
.py
169
32.715976
132
0.674592
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,573
conftest.py
python-rope_rope/ropetest/conftest.py
import os import pathlib import sys from subprocess import check_call from venv import EnvBuilder import pytest from rope.base import resources from ropetest import testutils @pytest.fixture(scope="session") def session_venv(tmpdir_factory): path = tmpdir_factory.mktemp("venv") venv_path = pathlib.Path(path...
2,797
Python
.py
80
30.7125
104
0.711789
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,574
reprtest.py
python-rope_rope/ropetest/reprtest.py
import pathlib import tempfile from textwrap import dedent from unittest.mock import MagicMock import pytest from rope.base import libutils, pyobjectsdef, resources from rope.base.project import Project from rope.contrib import findit from rope.contrib.autoimport import models from rope.refactor import occurrences fr...
6,539
Python
.py
142
41.28169
119
0.722677
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,575
builtinstest.py
python-rope_rope/ropetest/builtinstest.py
import unittest from textwrap import dedent from rope.base import builtins, libutils, pyobjects from rope.base.builtins import Dict from ropetest import testutils class BuiltinTypesTest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils.sample_project() self.pyc...
23,217
Python
.py
605
28.12562
87
0.53953
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,576
testutils.py
python-rope_rope/ropetest/testutils.py
import logging import os.path import shutil import sys import tempfile import unittest from pathlib import Path import rope.base.project from rope.contrib import generate logging.basicConfig(format="%(levelname)s:%(funcName)s:%(message)s", level=logging.INFO) RUN_TMP_DIR = tempfile.mkdtemp(prefix="ropetest-run-") ...
3,166
Python
.py
84
31.5
88
0.679109
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,577
objectinfertest.py
python-rope_rope/ropetest/objectinfertest.py
import unittest from textwrap import dedent import rope.base.builtins # Use fully-qualified names for clarity. from rope.base import libutils from ropetest import testutils class ObjectInferTest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils.sample_project() d...
15,681
Python
.py
414
26.910628
88
0.523678
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,578
simplifytest.py
python-rope_rope/ropetest/simplifytest.py
import unittest from rope.base import simplify class SimplifyTest(unittest.TestCase): def test_trivial_case(self): self.assertEqual("", simplify.real_code("")) def test_empty_strs(self): code = 's = ""\n' self.assertEqual(code, simplify.real_code(code)) def test_blanking_strs(se...
2,203
Python
.py
47
39.297872
81
0.591398
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,579
versioningtest.py
python-rope_rope/ropetest/versioningtest.py
import secrets from unittest.mock import patch from rope.base import versioning def test_calculate_version_hash(project): version_hash = versioning.calculate_version_hash(project) assert isinstance(version_hash, str) def test_version_hash_is_constant(project): version_hash_1 = versioning.calculate_vers...
1,448
Python
.py
26
51.192308
91
0.774628
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,580
projecttest.py
python-rope_rope/ropetest/projecttest.py
import os.path import pathlib import tempfile import unittest from textwrap import dedent from rope.base.exceptions import ResourceNotFoundError, RopeError from rope.base.fscommands import FileSystemCommands from rope.base.libutils import path_to_resource from rope.base.project import NoProject, Project, _realpath fro...
48,543
Python
.py
1,017
38.962635
88
0.662112
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,581
pycoretest.py
python-rope_rope/ropetest/pycoretest.py
import sys import unittest from textwrap import dedent from rope.base import exceptions, libutils from rope.base.builtins import BuiltinClass, File from rope.base.pycore import _TextChangeDetector from rope.base.pynamesdef import AssignedName from rope.base.pyobjects import AbstractFunction, get_base_type from ropetes...
52,145
Python
.py
1,140
35.92807
88
0.611465
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,582
pyscopestest.py
python-rope_rope/ropetest/pyscopestest.py
import unittest from textwrap import dedent from rope.base import libutils from rope.base.pyobjects import get_base_type from ropetest import testutils class PyCoreScopesTest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils.sample_project() self.pycore = self....
19,385
Python
.py
468
30.732906
87
0.558678
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,583
type_hinting_test.py
python-rope_rope/ropetest/type_hinting_test.py
import unittest from textwrap import dedent, indent import pytest from rope.base.oi.type_hinting import evaluate from rope.contrib.codeassist import code_assist from ropetest import testutils class AbstractHintingTest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils....
16,326
Python
.py
363
32.5427
429
0.52866
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,584
runmodtest.py
python-rope_rope/ropetest/runmodtest.py
import os import unittest from textwrap import dedent from rope.base import exceptions from ropetest import testutils class PythonFileRunnerTest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils.sample_project() self.pycore = self.project.pycore def tearDo...
6,404
Python
.py
158
30.398734
85
0.591879
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,585
advanced_oi_test.py
python-rope_rope/ropetest/advanced_oi_test.py
import unittest from textwrap import dedent import rope.base.libutils import rope.base.oi from rope.base.builtins import Str from ropetest import testutils class DynamicOITest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils.sample_project(validate_objectdb=True) ...
37,493
Python
.py
1,017
25.984267
87
0.521515
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,586
doatest.py
python-rope_rope/ropetest/doatest.py
import base64 import hashlib import hmac import multiprocessing try: import cPickle as pickle except ImportError: import pickle import socket import unittest from rope.base.oi import doa def cve_2014_3539_attacker(data_port, payload): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(...
2,894
Python
.py
65
37.092308
84
0.664888
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,587
codeanalyzetest.py
python-rope_rope/ropetest/codeanalyzetest.py
import unittest from textwrap import dedent import rope.base.evaluate from rope.base import codeanalyze, exceptions, libutils, worder from rope.base.codeanalyze import LogicalLineFinder, SourceLinesAdapter, get_block_start from ropetest import testutils class SourceLinesAdapterTest(unittest.TestCase): def test_s...
35,914
Python
.py
829
33.185766
88
0.579228
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,588
objectdbtest.py
python-rope_rope/ropetest/objectdbtest.py
import unittest from rope.base.oi import memorydb, objectdb from ropetest import testutils def _do_for_all_dbs(function): def called(self): for db in self.dbs: function(self, db) return called class _MockValidation: def is_value_valid(self, value): return value != -1 d...
6,879
Python
.py
152
37.322368
210
0.604912
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,589
serializer_test.py
python-rope_rope/ropetest/serializer_test.py
import json import pytest from rope.base.serializer import _js2py, json_to_python, python_to_json @pytest.mark.parametrize("version", [1, 2]) @pytest.mark.parametrize( "original_data", [ None, 4, "3", (), [], ("hello",), (1, [2], "hello"), [1, ...
4,801
Python
.py
138
27.898551
105
0.554596
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,590
historytest.py
python-rope_rope/ropetest/historytest.py
import unittest import rope.base.change # Use fully-qualified names for clarity. import rope.base.history # Use fully-qualified names for clarity. from rope.base import exceptions from ropetest import testutils class HistoryTest(unittest.TestCase): def setUp(self): super().setUp() self.project ...
15,912
Python
.py
342
37.959064
84
0.661209
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,591
suitestest.py
python-rope_rope/ropetest/refactor/suitestest.py
import unittest from textwrap import dedent from rope.base import ast from rope.refactor import suites from ropetest import testutils class SuiteTest(unittest.TestCase): def setUp(self): super().setUp() def tearDown(self): super().tearDown() def test_trivial_case(self): root = s...
6,766
Python
.py
190
24.978947
72
0.534525
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,592
usefunctiontest.py
python-rope_rope/ropetest/refactor/usefunctiontest.py
import unittest from textwrap import dedent from rope.base import exceptions from rope.refactor.usefunction import UseFunction from ropetest import testutils class UseFunctionTest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils.sample_project() self.mod1 = te...
6,400
Python
.py
202
20.163366
77
0.480505
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,593
extracttest.py
python-rope_rope/ropetest/refactor/extracttest.py
import unittest from textwrap import dedent import rope.base.codeanalyze import rope.base.exceptions from rope.refactor import extract from ropetest import testutils class ExtractMethodTest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils.sample_project() self...
108,188
Python
.py
3,076
22.545839
110
0.469281
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,594
patchedasttest.py
python-rope_rope/ropetest/refactor/patchedasttest.py
import itertools import sys import unittest from textwrap import dedent from rope.base import ast from rope.refactor import patchedast from ropetest import testutils NameConstant = "Name" if sys.version_info <= (3, 8) else "NameConstant" class PatchedASTTest(unittest.TestCase): def setUp(self): super()....
60,636
Python
.py
1,423
32.721715
151
0.523517
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,595
similarfindertest.py
python-rope_rope/ropetest/refactor/similarfindertest.py
import unittest from textwrap import dedent from rope.refactor import similarfinder from ropetest import testutils class SimilarFinderTest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils.sample_project() self.mod = testutils.create_module(self.project, "mod")...
12,069
Python
.py
290
32.206897
87
0.572878
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,596
restructuretest.py
python-rope_rope/ropetest/refactor/restructuretest.py
import unittest from textwrap import dedent from rope.refactor import restructure from ropetest import testutils class RestructureTest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils.sample_project() self.pycore = self.project.pycore self.mod = testut...
9,672
Python
.py
252
27.876984
88
0.519323
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,597
importutilstest.py
python-rope_rope/ropetest/refactor/importutilstest.py
import unittest from textwrap import dedent from rope.refactor.importutils import ImportTools, add_import, importinfo from ropetest import testutils class ImportUtilsTest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils.sample_project() self.import_tools = Imp...
69,500
Python
.py
1,816
27.174559
89
0.557585
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,598
inlinetest.py
python-rope_rope/ropetest/refactor/inlinetest.py
import unittest from textwrap import dedent import rope.base.exceptions from rope.refactor import inline from ropetest import testutils class InlineTest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils.sample_project() self.pycore = self.project.pycore ...
45,894
Python
.py
1,391
21.316319
91
0.471344
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)
32,599
change_signature_test.py
python-rope_rope/ropetest/refactor/change_signature_test.py
import unittest from textwrap import dedent import rope.base.exceptions from rope.refactor import change_signature from ropetest import testutils class ChangeSignatureTest(unittest.TestCase): def setUp(self): super().setUp() self.project = testutils.sample_project() self.pycore = self.pro...
27,113
Python
.py
796
21.988693
87
0.48898
python-rope/rope
1,917
161
105
LGPL-3.0
9/5/2024, 5:14:38 PM (Europe/Amsterdam)