mirror of
https://github.com/radixark/miles.git
synced 2026-10-02 07:14:53 +08:00
remove unused pytest markers (#867)
This commit is contained in:
+2
-10
@@ -57,13 +57,5 @@ norecursedirs = [
|
||||
"venv",
|
||||
"{arch}",
|
||||
]
|
||||
# markers to select tests, use `pytest --markers` to see all available markers, `pytest -m "<marker>"` to select tests
|
||||
markers = [
|
||||
"unit: marks unit test, i.e. testing a single, well isolated functionality (deselect with '-m \"not unit\"')",
|
||||
"integration: marks test checking the elements when integrated into subsystems (deselect with '-m \"not integration\"')",
|
||||
"system: marks test working at the highest integration level (deselect with '-m \"not system\"')",
|
||||
"acceptance: marks test checking whether the developed product/model passes the user defined acceptance criteria (deselect with '-m \"not acceptance\"')",
|
||||
"docs: mark tests related to documentation (deselect with '-m \"not docs\"')",
|
||||
"skipduringci: marks tests that are skipped ci as they are addressed by Jenkins jobs but should be run to test user setups",
|
||||
"pleasefixme: marks tests that are broken and need fixing",
|
||||
]
|
||||
asyncio_mode = "auto"
|
||||
# NOTE: we do not use pytest markers currently. tests are mainly separated by folders, i.e. tests/fast vs tests/e2e
|
||||
|
||||
@@ -28,7 +28,6 @@ def _build_messages() -> list[dict]:
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.system
|
||||
def test_generate_and_chat_completions_equivalence(sglang_server):
|
||||
"""The /generate (token) and /v1/chat/completions (message) endpoints
|
||||
must produce identical output given the same prompt."""
|
||||
|
||||
@@ -11,9 +11,6 @@ Requires 1 GPU.
|
||||
import json
|
||||
import os
|
||||
from dataclasses import dataclass
|
||||
|
||||
import pytest
|
||||
|
||||
import miles.utils.external_utils.command_utils as U
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -147,7 +144,6 @@ def execute():
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.system
|
||||
def test_session_server_tool_call():
|
||||
prepare()
|
||||
for proxy_var in ("http_proxy", "https_proxy", "HTTP_PROXY", "HTTPS_PROXY"):
|
||||
|
||||
@@ -21,9 +21,6 @@ Requires 1 GPU.
|
||||
import json
|
||||
import os
|
||||
from dataclasses import dataclass
|
||||
|
||||
import pytest
|
||||
|
||||
import miles.utils.external_utils.command_utils as U
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -160,7 +157,6 @@ def execute():
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.system
|
||||
def test_tito_logprob_equivalence():
|
||||
prepare()
|
||||
for proxy_var in ("http_proxy", "https_proxy", "HTTP_PROXY", "HTTPS_PROXY"):
|
||||
|
||||
@@ -3,7 +3,6 @@ import sys
|
||||
import types
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
import torch
|
||||
|
||||
|
||||
@@ -127,7 +126,6 @@ def load_raw_export_module():
|
||||
return module
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_mtp_moe_expert_mapping_uses_individual_hf_weights():
|
||||
module = load_bridge_module()
|
||||
bridge = module.Qwen3_5Bridge.__new__(module.Qwen3_5Bridge)
|
||||
@@ -142,7 +140,6 @@ def test_mtp_moe_expert_mapping_uses_individual_hf_weights():
|
||||
assert fc2_names == ["mtp.layers.0.mlp.experts.42.down_proj.weight"]
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_mtp_dense_mlp_mapping_still_uses_dense_hf_weights():
|
||||
module = load_bridge_module()
|
||||
bridge = module.Qwen3_5Bridge.__new__(module.Qwen3_5Bridge)
|
||||
@@ -154,7 +151,6 @@ def test_mtp_dense_mlp_mapping_still_uses_dense_hf_weights():
|
||||
assert fc2_names == ["mtp.layers.0.mlp.down_proj.weight"]
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_mtp_block_spec_uses_current_transformer_layer_spec():
|
||||
module = load_bridge_module()
|
||||
bridge = module.Qwen3_5Bridge.__new__(module.Qwen3_5Bridge)
|
||||
@@ -168,7 +164,6 @@ def test_mtp_block_spec_uses_current_transformer_layer_spec():
|
||||
assert result["mtp_block_spec"] == ("mtp-spec", "REAL_LAYER_SPEC_VP3")
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_eh_proj_keeps_column_order_when_loading_to_mcore():
|
||||
module = load_bridge_module()
|
||||
bridge = module.Qwen3_5Bridge.__new__(module.Qwen3_5Bridge)
|
||||
@@ -179,7 +174,6 @@ def test_eh_proj_keeps_column_order_when_loading_to_mcore():
|
||||
assert torch.equal(converted, weight)
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_build_config_enables_gated_attention_when_transformer_config_supports_it():
|
||||
module = load_bridge_module()
|
||||
bridge = module.Qwen3_5Bridge.__new__(module.Qwen3_5Bridge)
|
||||
@@ -197,7 +191,6 @@ def test_build_config_enables_gated_attention_when_transformer_config_supports_i
|
||||
assert config["attention_output_gate"] is True
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_raw_qwen3_5_mtp_export_keeps_eh_proj_column_order():
|
||||
module = load_raw_export_module()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user