Commit 5aaf05e
committed
[chores:tests] Fixed mocking in test_update_vpn_server_configuration
The first call to vpn.save() was generting a real HTTP request,
which failed in the CI of ansible-openwisp2.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
(cherry picked from commit 582e6a7)
# Conflicts:
# openwisp_controller/config/tests/test_vpn.py1 parent 4a44a94 commit 5aaf05e
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
833 | | - | |
834 | | - | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
835 | 836 | | |
836 | 837 | | |
837 | 838 | | |
838 | 839 | | |
839 | 840 | | |
840 | 841 | | |
| 842 | + | |
| 843 | + | |
841 | 844 | | |
842 | 845 | | |
843 | 846 | | |
844 | | - | |
| 847 | + | |
845 | 848 | | |
846 | 849 | | |
| 850 | + | |
| 851 | + | |
847 | 852 | | |
848 | | - | |
849 | | - | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
850 | 860 | | |
851 | 861 | | |
852 | 862 | | |
| |||
0 commit comments