Commit b734f67
committed
refactor: address review feedback on YAML export and test naming
- views.py: simplify _rules_to_yaml_data loop (single condition instead
of if/elif); change Content-Type to standard 'application/yaml'
- tests/test_views.py: rename test_yaml_export_requires_login to
test_yaml_export_unauthenticated_responds with accurate docstring
- .gitignore: add docs/superpowers/ (design specs are local-only)
- delete docs/superpowers/specs/ design spec from git history1 parent e9b823c commit b734f67
4 files changed
Lines changed: 10 additions & 191 deletions
File tree
- docs/superpowers/specs
- netbox_interface_name_rules
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
Lines changed: 0 additions & 178 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
728 | | - | |
729 | | - | |
| 728 | + | |
| 729 | + | |
730 | 730 | | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
735 | 734 | | |
736 | 735 | | |
737 | 736 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 127 | + | |
133 | 128 | | |
134 | 129 | | |
135 | 130 | | |
136 | 131 | | |
137 | 132 | | |
138 | 133 | | |
139 | 134 | | |
140 | | - | |
| 135 | + | |
141 | 136 | | |
142 | 137 | | |
143 | 138 | | |
| |||
0 commit comments