Merge pull request #2 from oib/codex/analyze-codebase-and-suggest-improvements-6omr61

docs/tests: fix remaining dead links and add empty-config export test
This commit is contained in:
Andreas Michael Fleckl
2026-02-17 16:15:25 +01:00
committed by GitHub
2 changed files with 23 additions and 7 deletions

View File

@@ -141,15 +141,15 @@ Choose a tutorial based on your interest:
## Developer Resources
### Documentation
- [API Reference](../api/)
- [API Reference](../5_reference/0_index.md)
- [SDK Guides](4_examples.md)
- [Examples](examples.md)
- [Best Practices](best-practices.md)
- [Examples](4_examples.md)
- [Best Practices](5_developer-guide.md)
### Tools
- [AITBC CLI](tools/cli.md)
- [IDE Plugins](tools/ide-plugins.md)
- [Testing Framework](tools/testing.md)
- [AITBC CLI](../0_getting_started/3_cli.md)
- [IDE Plugins](15_ecosystem-initiatives.md)
- [Testing Framework](17_windsurf-testing.md)
### Community
- [Discord](https://discord.gg/aitbc)
@@ -256,7 +256,7 @@ See our [Contributing Guide](3_contributing.md) for details.
- 📖 [Documentation](../)
- 💬 [Discord](https://discord.gg/aitbc)
- 🐛 [Issue Tracker](https://github.com/aitbc/issues)
- 🐛 [Issue Tracker](https://github.com/oib/AITBC/issues)
- 📧 [dev-support@aitbc.io](mailto:dev-support@aitbc.io)
## Next Steps

View File

@@ -251,6 +251,22 @@ class TestConfigCommands:
assert data['coordinator_url'] == 'http://test:8000'
assert data['api_key'] == '***REDACTED***'
def test_export_empty_yaml(self, runner, mock_config, tmp_path):
"""Test exporting an empty YAML config file"""
with runner.isolated_filesystem(temp_dir=tmp_path):
local_config = Path.cwd() / ".aitbc.yaml"
local_config.write_text("")
result = runner.invoke(config, [
'export',
'--format', 'json'
], obj={'config': mock_config, 'output_format': 'table'})
assert result.exit_code == 0
data = json.loads(result.output)
assert data == {}
def test_export_no_config(self, runner, mock_config):
"""Test export when no config file exists"""
with runner.isolated_filesystem():