repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/shanghai/eip3651_warm_coinbase/test_warm_coinbase.py
tests/shanghai/eip3651_warm_coinbase/test_warm_coinbase.py
""" Tests [EIP-3651: Warm COINBASE](https://eips.ethereum.org/EIPS/eip-3651). Tests ported from: [ethereum/tests/pull/1082](https://github.com/ethereum/tests/pull/1082). """ import pytest from ethereum_test_forks import Fork, Shanghai from ethereum_test_tools import ( Account, Address, Alloc, Bytecod...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/shanghai/eip3855_push0/spec.py
tests/shanghai/eip3855_push0/spec.py
"""Defines EIP-3855 specification constants and functions.""" from dataclasses import dataclass @dataclass(frozen=True) class ReferenceSpec: """Defines the reference spec version and git path.""" git_path: str version: str ref_spec_3855 = ReferenceSpec("EIPS/eip-3855.md", "6f85bd73336de4aacfad7ac3bb3a...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/shanghai/eip3855_push0/conftest.py
tests/shanghai/eip3855_push0/conftest.py
"""Fixtures for the EIP-3855 PUSH0 tests.""" import pytest from ethereum_test_tools import Alloc, Environment @pytest.fixture def env() -> Environment: """Environment fixture.""" return Environment() @pytest.fixture def post() -> Alloc: """Post state fixture.""" return Alloc()
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/shanghai/eip3855_push0/test_push0.py
tests/shanghai/eip3855_push0/test_push0.py
""" Tests [EIP-3855: PUSH0 Instruction](https://eips.ethereum.org/EIPS/eip-3855). Tests ported from: [ethereum/tests/pull/1033](https://github.com/ethereum/tests/pull/1033). """ import pytest from ethereum_test_tools import ( EOA, Account, Address, Alloc, Bytecode, CodeGasMeasure, Environ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/shanghai/eip3855_push0/__init__.py
tests/shanghai/eip3855_push0/__init__.py
""" Tests [EIP-3855: PUSH0 Instruction](https://eips.ethereum.org/EIPS/eip-3855). """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/docs/scripts/copy_repo_docs_to_mkdocs.py
docs/scripts/copy_repo_docs_to_mkdocs.py
"""Include EEST's CONTRIBUTING.md and SECURITY.md in the HTML documentation.""" import logging import re from pathlib import Path import mkdocs_gen_files logger = logging.getLogger("mkdocs") def copy_markdown_file(source_path, destination_path, fix_links=True): """Copy a markdown file to the destination, fixin...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/docs/scripts/generate_fill_help.py
docs/scripts/generate_fill_help.py
#!/usr/bin/env python3 """ Generate the fill command help output for documentation. This script captures the output of 'fill --help' and generates a complete documentation page that includes both static content and the auto-generated help output. The generated page replaces the manual help output with current command-...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/docs/scripts/gen_test_case_reference.py
docs/scripts/gen_test_case_reference.py
""" Script called during mkdocs build|serve to create the "Test Case Reference". Called via the mkdocs-gen-files plugin; it's specified in mkdocs.yaml and can't take command-line arguments. The main logic is implemented in src/pytest_plugins/filler/gen_test_doc.py. """ import importlib import logging import sys from ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/setup.py
setup.py
# -*- coding: utf-8 -*- # """ # The MIT License (MIT) # Copyright (c) 2023 pkjmesra # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including withou...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/.github/workflows/sync_local_candles.py
.github/workflows/sync_local_candles.py
#!/usr/bin/env python3 """ Sync Local Candle Database This script syncs candle data from multiple sources: 1. Turso database (primary) 2. PKBrokers tick data from GitHub (fallback) 3. Existing pickle files (last resort) It exports data in PKScreener-compatible format. """ import os import sys import glob import json...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/.github/workflows/ticks_to_pickle.py
.github/workflows/ticks_to_pickle.py
#!/usr/bin/env python3 """ Convert ticks.json to pickle format for PKScreener. This script is used as a fallback when the main data download fails. """ import json import pickle import sys from datetime import datetime try: import pandas as pd import pytz except ImportError: print("Installing required pack...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/.github/workflows/subworkflows.py
.github/workflows/subworkflows.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/.github/workflows/updateVersion.py
.github/workflows/updateVersion.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/.github/workflows/squash.py
.github/workflows/squash.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/.github/workflows/fetch_ticks_from_bot.py
.github/workflows/fetch_ticks_from_bot.py
#!/usr/bin/env python3 """ Fetch Ticks from PKTickBot This script sends /ticks command to @pktickbot on Telegram and downloads the ticks.json.zip file for use in PKScreener workflows. Requires: - TBTOKEN: Telegram bot token for the requester bot - PKTICKBOT_CHAT_ID: Chat ID where pktickbot is accessible (or use @pkti...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/.github/workflows/workflowtriggers.py
.github/workflows/workflowtriggers.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/.github/workflows/fetch-fresh-data.py
.github/workflows/fetch-fresh-data.py
#!/usr/bin/env python3 """ Fetch fresh market data before running scans during market hours. This script should be called at the start of scan workflows to ensure we have the latest tick data before executing scans. It will: 1. Check if we're in market hours 2. Download the latest ticks.json from PKBrokers 3. Downloa...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/.github/workflows/githubutilities.py
.github/workflows/githubutilities.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/.github/workflows/scan_queue_manager.py
.github/workflows/scan_queue_manager.py
""" Scan Queue Manager - Phase 4 Optimization Manages parallel scan execution with priority queue and group-based dispatching. """ import argparse import os class ScanQueueManager: """Manages parallel scan execution with priority queue""" # Define scan groups for parallel execution SCAN_GROUPS = { ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/PKScheduler_test.py
test/PKScheduler_test.py
#!/usr/bin/python3 """ The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/BacktestHandler_test.py
test/BacktestHandler_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/BacktestUtils_test.py
test/BacktestUtils_test.py
""" Unit tests for BacktestUtils.py Tests for backtesting utilities. """ import pytest import pandas as pd import os from unittest.mock import Mock, MagicMock, patch class TestGetBacktestReportFilename: """Tests for get_backtest_report_filename function""" @patch('pkscreener.classes.BacktestUtils.Archiver')...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/integration_notification_test.py
test/integration_notification_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Integration tests for NotificationService.py, TelegramNotifier.py, and OutputFunctions.py with extensive mocking. Target: Push coverage from 14-21% to 60%+ """ import pytest import pandas as pd import numpy as np from unittest.mock import Magi...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/Barometer_test.py
test/Barometer_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/ResultsLabeler_test.py
test/ResultsLabeler_test.py
""" Unit tests for ResultsLabeler.py Tests for results labeling and formatting. """ import pytest import pandas as pd import numpy as np import os from unittest.mock import Mock, MagicMock, patch class TestResultsLabelerInit: """Tests for ResultsLabeler initialization""" def test_init(self): """Shou...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/pkscreenercli_test.py
test/pkscreenercli_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/MenuManager_comprehensive_test.py
test/MenuManager_comprehensive_test.py
""" Comprehensive unit tests for MenuManager class. This module provides extensive test coverage for the MenuManager module, targeting >=90% code coverage. """ import os import pytest from unittest.mock import MagicMock, patch class TestMenuManagerImport: """Test MenuManager import.""" def test_module_...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/Menuoptions_test.py
test/Menuoptions_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/Utility_test.py
test/Utility_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/comprehensive_module_test.py
test/comprehensive_module_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Comprehensive module tests targeting all low-coverage files. Focus on exercising actual code paths with mocking. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, PropertyMock, call from arg...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/AssetsManager_comprehensive_test.py
test/AssetsManager_comprehensive_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/PKUserRegistration_test.py
test/PKUserRegistration_test.py
#!/usr/bin/python3 """ The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/Fetcher_test.py
test/Fetcher_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/integration_mainlogic_test.py
test/integration_mainlogic_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Integration tests for MainLogic.py and PKScreenerMain.py with extensive mocking. Target: Push coverage from 10% to 50%+ """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, PropertyMock fro...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/PKScanRunner_comprehensive_test.py
test/PKScanRunner_comprehensive_test.py
""" Comprehensive unit tests for PKScanRunner class. This module provides extensive test coverage for the PKScanRunner module, targeting >=90% code coverage. """ import os import pytest from unittest.mock import MagicMock, patch import pandas as pd class TestPKScanRunnerImport: """Test PKScanRunner import.""" ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/PKAnalytics_coverage_test.py
test/PKAnalytics_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests for PKAnalytics.py to achieve 90%+ coverage. """ import pytest from unittest.mock import patch, MagicMock import warnings import os warnings.filterwarnings("ignore") class TestPKAnalyticsServiceCoverage: """Comprehensive tests for PKAnalyt...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/archiver_test.py
test/archiver_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/RequestsMocker.py
test/RequestsMocker.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/TelegramNotifier_test.py
test/TelegramNotifier_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/screening_statistics_deep_test.py
test/screening_statistics_deep_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Deep coverage tests for ScreeningStatistics.py - targeting 90% coverage. Tests all major methods with realistic stock data. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock import warnings i...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/coverage_enhancement_test.py
test/coverage_enhancement_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests to enhance coverage for low-coverage modules. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, AsyncMock from argparse import Namespace import asyncio # ================================...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/ultra_coverage_test.py
test/ultra_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Ultra coverage tests - targeting remaining uncovered code in major modules. Goal: Push overall coverage from 46% to 90%+ """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, PropertyMock, call ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/MainLogic_comprehensive_test.py
test/MainLogic_comprehensive_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Comprehensive tests for MainLogic.py to achieve 90%+ coverage. """ import pytest import pandas as pd import unittest from unittest.mock import MagicMock, patch, Mock from argparse import Namespace import warnings import os import sys warnings.filterwa...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/ConsoleUtility_test.py
test/ConsoleUtility_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/pkscreenerFunctional_X_12_test.py
test/pkscreenerFunctional_X_12_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/pkscreenerFunctional_X_8_test.py
test/pkscreenerFunctional_X_8_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/high_impact_coverage_test.py
test/high_impact_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra High-impact tests targeting major uncovered code paths. Focus on ScreeningStatistics, MenuManager, and other high-statement files. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, PropertyM...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/StockScreener_test.py
test/StockScreener_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/PKScheduler_coverage_test.py
test/PKScheduler_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests for PKScheduler.py to achieve 90%+ coverage. """ import pytest from unittest.mock import patch, MagicMock import warnings warnings.filterwarnings("ignore") class TestPKSchedulerCoverage: """Comprehensive tests for PKScheduler.""" ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/ScreeningStatistics_test.py
test/ScreeningStatistics_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/ExecuteOptionHandlers_test.py
test/ExecuteOptionHandlers_test.py
""" Unit tests for ExecuteOptionHandlers.py Tests for execute option processing handlers. """ import pytest from unittest.mock import Mock, MagicMock, patch class TestHandleExecuteOption3: """Tests for handle_execute_option_3 function""" def test_sets_max_display_results(self): """Should set maxdisp...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/PKDemoHandler_test.py
test/PKDemoHandler_test.py
#!/usr/bin/python3 """ The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/code_path_coverage_test.py
test/code_path_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests that exercise specific code paths in low-coverage modules. These tests use extensive mocking to hit actual code lines. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, PropertyMock, c...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/MarketMonitor_test.py
test/MarketMonitor_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/GlobalStore_coverage_test.py
test/GlobalStore_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests for GlobalStore.py to achieve 90%+ coverage. """ import pytest from unittest.mock import patch, MagicMock, PropertyMock from argparse import Namespace import warnings warnings.filterwarnings("ignore") class TestPKGlobalStoreCoverage: """Co...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/targeted_coverage_test.py
test/targeted_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Targeted tests to cover specific code paths in low-coverage modules. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, PropertyMock from argparse import Namespace import warnings import sys impo...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/module_internals_test.py
test/module_internals_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests for internal methods of low-coverage modules. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, PropertyMock from argparse import Namespace import warnings import sys import os warnings.fi...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/deep_screening_test.py
test/deep_screening_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Deep tests for ScreeningStatistics methods with realistic stock data. Target: Push ScreeningStatistics coverage from 59% to 85%+ """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock from argpars...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/screening_methods_deep_test.py
test/screening_methods_deep_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Deep tests for ScreeningStatistics specific methods. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock from argparse import Namespace import warnings warnings.filterwarnings("ignore") @pytest.f...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/menu_manager_comprehensive_test.py
test/menu_manager_comprehensive_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Comprehensive tests for MenuManager.py to boost coverage from 7% to 60%+ """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, PropertyMock from argparse import Namespace import warnings import sys ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/OTAUpdater_test.py
test/OTAUpdater_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/signals_test.py
test/signals_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/Utility_comprehensive_test.py
test/Utility_comprehensive_test.py
""" Comprehensive unit tests for Utility module. This module provides extensive test coverage for the Utility module, targeting >=90% code coverage. """ import os import pytest from unittest.mock import MagicMock, patch import pandas as pd class TestUtilityImport: """Test Utility import.""" def test_mo...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/method_specific_test.py
test/method_specific_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests targeting specific methods in low-coverage modules. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, PropertyMock from argparse import Namespace import warnings import sys import os warni...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/comprehensive_integration_test.py
test/comprehensive_integration_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Comprehensive integration tests to maximize coverage. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, PropertyMock from argparse import Namespace import warnings import sys import os import mu...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/DataLoader_test.py
test/DataLoader_test.py
""" Unit tests for DataLoader.py Tests for stock data loading and preparation. """ import pytest import pandas as pd import os from unittest.mock import Mock, MagicMock, patch, PropertyMock class TestStockDataLoaderInit: """Tests for StockDataLoader initialization""" def test_init_default_values(self): ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/BacktestHandler_comprehensive_test.py
test/BacktestHandler_comprehensive_test.py
""" Comprehensive unit tests for BacktestHandler class. This module provides extensive test coverage for the BacktestHandler module, targeting >=90% code coverage. """ import os import sys import pytest from unittest import mock from unittest.mock import MagicMock, patch, PropertyMock import pandas as pd import numpy...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/MarketStatus_test.py
test/MarketStatus_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/test_data_flow_e2e.py
test/test_data_flow_e2e.py
""" End-to-end functional tests for PKScreener data flow mechanisms. This module tests the complete data flow from PKScreener's perspective: 1. Downloading pkl files from GitHub 2. Downloading ticks.json from GitHub 3. Merging tick data with existing pkl data 4. Triggering history download workflow when data is stale ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/MenuOptions_coverage_test.py
test/MenuOptions_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests for MenuOptions.py to achieve 90%+ coverage. """ import pytest from unittest.mock import patch, MagicMock import warnings warnings.filterwarnings("ignore") class TestMenuOptionsCoverage: """Comprehensive tests for MenuOptions.""" ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/PKScreenerMain_comprehensive_test.py
test/PKScreenerMain_comprehensive_test.py
""" Comprehensive tests for PKScreenerMain.py Target: >= 90% coverage """ import pytest import os import sys import multiprocessing from argparse import Namespace from unittest.mock import MagicMock, patch, PropertyMock import pandas as pd import numpy as np from datetime import datetime, timedelta # Set environment ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/PKDataService_coverage_test.py
test/PKDataService_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests for PKDataService.py to achieve 90%+ coverage. """ import pytest from unittest.mock import patch, MagicMock import json import warnings warnings.filterwarnings("ignore") class TestPKDataServiceCoverage: """Comprehensive tests for PKDataSer...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/screening_statistics_comprehensive_test.py
test/screening_statistics_comprehensive_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Comprehensive tests for ScreeningStatistics.py to achieve 90%+ coverage. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock from argparse import Namespace import warnings warnings.filterwarnings("...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/globals_test.py
test/globals_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/PortfolioXRay_test.py
test/PortfolioXRay_test.py
#!/usr/bin/python3 """ The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/backtest_test.py
test/backtest_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/low_coverage_modules_test.py
test/low_coverage_modules_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests for low-coverage modules. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock from argparse import Namespace import warnings import sys import os warnings.filterwarnings("ignore") @pytest.f...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/PKPremiumHandler_test.py
test/PKPremiumHandler_test.py
#!/usr/bin/python3 """ The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/MarketStatus_coverage_test.py
test/MarketStatus_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests for MarketStatus.py to achieve 90%+ coverage. """ import pytest from unittest.mock import patch, MagicMock import warnings warnings.filterwarnings("ignore") class TestMarketStatusCoverage: """Comprehensive tests for MarketStatus.""" ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/Telegram_test.py
test/Telegram_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/ConsoleMenuUtility_coverage_test.py
test/ConsoleMenuUtility_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests for ConsoleMenuUtility.py to achieve 90%+ coverage. """ import pytest from unittest.mock import patch, MagicMock import warnings warnings.filterwarnings("ignore") class TestPKConsoleMenuToolsCoverage: """Comprehensive tests for PKConsoleMe...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/GlobalStore_comprehensive_test.py
test/GlobalStore_comprehensive_test.py
""" Comprehensive unit tests for GlobalStore class. This module provides extensive test coverage for the GlobalStore module, targeting >=90% code coverage. """ import os import pytest from unittest.mock import MagicMock, patch class TestGlobalStoreImport: """Test GlobalStore import.""" def test_module_...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/BacktestHandler_feature_test.py
test/BacktestHandler_feature_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Feature-oriented unit tests for BacktestHandler class. Tests are organized by features/capabilities rather than methods. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch from argparse import Names...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/BotHandlers_comprehensive_test.py
test/BotHandlers_comprehensive_test.py
""" Comprehensive unit tests for BotHandlers module. This module provides extensive test coverage for the BotHandlers module, targeting >=90% code coverage. """ import os import pytest from unittest.mock import MagicMock, patch class TestBotHandlersModuleImport: """Test BotHandlers module import.""" de...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/PKCliRunner_test.py
test/PKCliRunner_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Comprehensive unit tests for PKCliRunner module targeting high coverage. """ import os import sys import pytest import pandas as pd from unittest.mock import MagicMock, patch, PropertyMock from argparse import Namespace import pkscreener.classes.ConfigMa...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/DataLoader_comprehensive_test.py
test/DataLoader_comprehensive_test.py
""" Comprehensive unit tests for DataLoader class. This module provides extensive test coverage for the DataLoader module, targeting >=90% code coverage. """ import os import pytest from unittest.mock import MagicMock, patch import pandas as pd class TestDataLoaderImport: """Test DataLoader import.""" ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/integration_stockscreener_test.py
test/integration_stockscreener_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Integration tests for StockScreener.py with extensive mocking. Target: Push StockScreener coverage from 13% to 60%+ """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, PropertyMock from argpar...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/workflowManager_test.py
test/workflowManager_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/TelegramNotifier_feature_test.py
test/TelegramNotifier_feature_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Feature-oriented unit tests for TelegramNotifier class. Tests are organized by features/capabilities rather than methods. """ import pytest import pandas as pd from unittest.mock import MagicMock, patch, PropertyMock from argparse import Namespace...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/mega_coverage_test.py
test/mega_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Mega coverage tests targeting 90%+ overall coverage. Focus on MenuManager, MainLogic, ExecuteOptionHandlers, PKScreenerMain, StockScreener. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/PKMarketOpenCloseAnalyser_test.py
test/PKMarketOpenCloseAnalyser_test.py
import unittest import pytest from unittest.mock import patch, MagicMock import pandas as pd from pkscreener.classes.Utility import tools from pkscreener.classes.ScreeningStatistics import ScreeningStatistics from PKDevTools.classes.PKDateUtilities import PKDateUtilities from pkscreener.classes.PKMarketOpenCloseAnalyse...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/CandlePatterns_test.py
test/CandlePatterns_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/final_push_coverage_test.py
test/final_push_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Final push tests - targeting the largest uncovered modules. Focus on StockScreener, MenuManager, MainLogic, PKScreenerMain, MenuNavigation. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/signals_coverage_test.py
test/signals_coverage_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Tests for signals.py to achieve 90%+ coverage. """ import pytest from unittest.mock import patch, MagicMock import pandas as pd import numpy as np import warnings warnings.filterwarnings("ignore") @pytest.fixture def stock_data(): """Create samp...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/end_to_end_flow_test.py
test/end_to_end_flow_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra End-to-end integration tests that mock full application flows. """ import pytest import pandas as pd import numpy as np from unittest.mock import MagicMock, patch, Mock, PropertyMock from argparse import Namespace import warnings import sys import os ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/GlobalStore_test.py
test/GlobalStore_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/refactored_modules_test.py
test/refactored_modules_test.py
""" Tests for the refactored modular components of PKScreener. These tests verify that the modular functions extracted from globals.py work correctly: - CoreFunctions: Review date, iterations, results processing - OutputFunctions: Error messages, config toggles, file operations - MenuNavigation: Menu choice hierarchy ...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/OutputFunctions_test.py
test/OutputFunctions_test.py
""" Unit tests for OutputFunctions.py Tests for output and display functions. """ import pytest import pandas as pd import os from unittest.mock import Mock, MagicMock, patch class TestFormatRunOptionName: """Tests for format_run_option_name function""" @patch('pkscreener.classes.OutputFunctions.PKScanRunne...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/TelegramNotifier_comprehensive_test.py
test/TelegramNotifier_comprehensive_test.py
""" Comprehensive unit tests for TelegramNotifier class. This module provides extensive test coverage for the TelegramNotifier module, targeting >=90% code coverage. """ import os import pytest from unittest.mock import MagicMock, patch import pandas as pd class TestTelegramNotifierInit: """Test TelegramNotifie...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
false
pkjmesra/PKScreener
https://github.com/pkjmesra/PKScreener/blob/c03a12626a557190678ff47897077bdf7784495c/test/StockScreener_comprehensive_test.py
test/StockScreener_comprehensive_test.py
""" The MIT License (MIT) Copyright (c) 2023 pkjmesra Comprehensive tests for StockScreener.py to achieve 90%+ coverage. """ import pytest from unittest.mock import patch, MagicMock, PropertyMock from argparse import Namespace import pandas as pd import numpy as np import warnings import logging warnings...
python
MIT
c03a12626a557190678ff47897077bdf7784495c
2026-01-05T06:31:20.733224Z
true