aa-intel-tool 2.10.1__py3-none-any.whl → 2.11.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. aa_intel_tool/__init__.py +1 -1
  2. aa_intel_tool/auth_hooks.py +2 -2
  3. aa_intel_tool/locale/cs_CZ/LC_MESSAGES/django.po +4 -4
  4. aa_intel_tool/locale/de/LC_MESSAGES/django.po +4 -4
  5. aa_intel_tool/locale/django.pot +5 -5
  6. aa_intel_tool/locale/es/LC_MESSAGES/django.po +4 -4
  7. aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.po +4 -4
  8. aa_intel_tool/locale/it_IT/LC_MESSAGES/django.po +4 -4
  9. aa_intel_tool/locale/ja/LC_MESSAGES/django.mo +0 -0
  10. aa_intel_tool/locale/ja/LC_MESSAGES/django.po +35 -35
  11. aa_intel_tool/locale/ko_KR/LC_MESSAGES/django.po +4 -4
  12. aa_intel_tool/locale/nl_NL/LC_MESSAGES/django.po +4 -4
  13. aa_intel_tool/locale/pl_PL/LC_MESSAGES/django.po +4 -4
  14. aa_intel_tool/locale/ru/LC_MESSAGES/django.po +4 -4
  15. aa_intel_tool/locale/sk/LC_MESSAGES/django.po +4 -4
  16. aa_intel_tool/locale/uk/LC_MESSAGES/django.po +4 -4
  17. aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.po +4 -4
  18. aa_intel_tool/parser/module/dscan.py +4 -5
  19. aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.css +23 -26
  20. aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css +1 -1
  21. aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css.map +1 -1
  22. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.js +169 -282
  23. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js +1 -1
  24. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js.map +1 -1
  25. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.js +251 -572
  26. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js +1 -1
  27. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js.map +1 -1
  28. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.js +163 -237
  29. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js +1 -1
  30. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js.map +1 -1
  31. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.js +18 -0
  32. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js +1 -1
  33. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js.map +1 -1
  34. aa_intel_tool/static/aa_intel_tool/libs/DataTables/2.3.4/dataTables.bootstrap5.css +610 -0
  35. aa_intel_tool/static/aa_intel_tool/libs/DataTables/2.3.4/dataTables.bootstrap5.js +123 -0
  36. aa_intel_tool/static/aa_intel_tool/libs/DataTables/2.3.4/dataTables.bootstrap5.min.css +8 -0
  37. aa_intel_tool/static/aa_intel_tool/libs/DataTables/2.3.4/dataTables.bootstrap5.min.css.map +1 -0
  38. aa_intel_tool/static/aa_intel_tool/libs/DataTables/2.3.4/dataTables.bootstrap5.min.js +6 -0
  39. aa_intel_tool/static/aa_intel_tool/libs/DataTables/2.3.4/dataTables.bootstrap5.min.js.map +1 -0
  40. aa_intel_tool/static/aa_intel_tool/libs/DataTables/2.3.4/datatables.min.js +10 -0
  41. aa_intel_tool/static/aa_intel_tool/libs/DataTables/2.3.4/datatables.min.js.map +1 -0
  42. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/ColumnControl/1.1.1/css/columnControl.bootstrap5.css +516 -0
  43. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/ColumnControl/1.1.1/css/columnControl.bootstrap5.min.css +2 -0
  44. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/ColumnControl/1.1.1/css/columnControl.bootstrap5.min.css.map +1 -0
  45. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/ColumnControl/1.1.1/js/columnControl.bootstrap5.js +73 -0
  46. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/ColumnControl/1.1.1/js/columnControl.bootstrap5.min.js +6 -0
  47. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/ColumnControl/1.1.1/js/columnControl.bootstrap5.min.js.map +1 -0
  48. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/ColumnControl/1.1.1/js/dataTables.columnControl.js +3091 -0
  49. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/ColumnControl/1.1.1/js/dataTables.columnControl.min.js +10 -0
  50. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/ColumnControl/1.1.1/js/dataTables.columnControl.min.js.map +1 -0
  51. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/FixedHeader/4.0.4/css/fixedHeader.bootstrap5.css +20 -0
  52. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/FixedHeader/4.0.4/css/fixedHeader.bootstrap5.min.css +2 -0
  53. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/FixedHeader/4.0.4/css/fixedHeader.bootstrap5.min.css.map +1 -0
  54. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/FixedHeader/4.0.4/js/dataTables.fixedHeader.js +1203 -0
  55. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/FixedHeader/4.0.4/js/dataTables.fixedHeader.min.js +6 -0
  56. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/FixedHeader/4.0.4/js/dataTables.fixedHeader.min.js.map +1 -0
  57. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/FixedHeader/4.0.4/js/fixedHeader.bootstrap5.js +59 -0
  58. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/FixedHeader/4.0.4/js/fixedHeader.bootstrap5.min.js +6 -0
  59. aa_intel_tool/static/aa_intel_tool/libs/DataTables/Extensions/FixedHeader/4.0.4/js/fixedHeader.bootstrap5.min.js.map +1 -0
  60. aa_intel_tool/templates/aa_intel_tool/base.html +30 -0
  61. aa_intel_tool/templates/aa_intel_tool/bundles/datatables-2-css.html +11 -0
  62. aa_intel_tool/templates/aa_intel_tool/bundles/datatables-2-js.html +14 -0
  63. aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/alliances.html +1 -1
  64. aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/corporations.html +1 -1
  65. aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/pilots.html +2 -2
  66. aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/interesting-on-grid/items.html +1 -1
  67. aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-classes.html +1 -1
  68. aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-types.html +1 -1
  69. aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details/pilots.html +1 -1
  70. aa_intel_tool/templates/aa_intel_tool/views/scan/chatlist.html +2 -2
  71. aa_intel_tool/templates/aa_intel_tool/views/scan/dscan.html +2 -2
  72. aa_intel_tool/templates/aa_intel_tool/views/scan/fleetcomp.html +2 -2
  73. aa_intel_tool/tests/__init__.py +38 -0
  74. aa_intel_tool/tests/test_access.py +2 -2
  75. aa_intel_tool/tests/test_admin.py +4 -3
  76. aa_intel_tool/tests/test_app_settings.py +3 -2
  77. aa_intel_tool/tests/test_auth_hooks.py +2 -2
  78. aa_intel_tool/tests/test_helper_data_structures.py +2 -4
  79. aa_intel_tool/tests/test_helper_eve_character.py +5 -7
  80. aa_intel_tool/tests/test_models.py +3 -3
  81. aa_intel_tool/tests/test_parser_general.py +48 -34
  82. aa_intel_tool/tests/test_parser_helper_db.py +2 -4
  83. aa_intel_tool/tests/test_parser_module_chatlist.py +2 -2
  84. aa_intel_tool/tests/test_parser_module_dscan.py +828 -0
  85. aa_intel_tool/tests/test_parser_module_feetcomp.py +230 -0
  86. aa_intel_tool/tests/test_tasks.py +56 -0
  87. aa_intel_tool/tests/test_views_ajax.py +72 -0
  88. aa_intel_tool/tests/test_views_general.py +240 -0
  89. {aa_intel_tool-2.10.1.dist-info → aa_intel_tool-2.11.1.dist-info}/METADATA +1 -1
  90. {aa_intel_tool-2.10.1.dist-info → aa_intel_tool-2.11.1.dist-info}/RECORD +92 -59
  91. {aa_intel_tool-2.10.1.dist-info → aa_intel_tool-2.11.1.dist-info}/WHEEL +0 -0
  92. {aa_intel_tool-2.10.1.dist-info → aa_intel_tool-2.11.1.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * FixedHeader 4.0.4
3
+ * © SpryMedia Ltd - datatables.net/license
4
+ */
5
+ !function(t){if('function'==typeof define&&define.amd)define(['jquery','datatables.net'],function(e){return t(e,window,document)});else if('object'==typeof exports){var e=require('jquery'),o=function(t,e){e.fn.dataTable||require('datatables.net')(t,e)};'undefined'==typeof window?module.exports=function(i,s){return i||(i=window),s||(s=e(i)),o(i,s),t(s,i,i.document)}:(o(window,e),module.exports=t(e,window,window.document))}else t(jQuery,window,document)}(function(t,e,o){'use strict';var i=t.fn.dataTable,s=0,r=function(o,d){if(!i.versionCheck('2'))throw'Warning: FixedHeader requires DataTables 2 or newer';if(!(this instanceof r))throw'FixedHeader must be initialised with the \'new\' keyword.';!0===d&&(d={}),o=new i.Api(o),this.c=t.extend(!0,{},r.defaults,d),this.s={dt:o,position:{theadTop:0,tbodyTop:0,tfootTop:0,tfootBottom:0,width:0,left:0,tfootHeight:0,theadHeight:0,windowHeight:t(e).height(),visible:!0},headerMode:null,footerMode:null,autoWidth:o.settings()[0].oFeatures.bAutoWidth,namespace:'.dtfc'+s++,scrollLeft:{header:-1,footer:-1},enable:!0,autoDisable:!1},this.dom={floatingHeader:null,thead:t(o.table().header()),tbody:t(o.table().body()),tfoot:t(o.table().footer()),header:{host:null,scrollAdjust:null,floating:null,floatingParent:t('<div class="dtfh-floatingparent"><div class="dtfh-floating-limiter"><div></div></div></div>'),limiter:null,placeholder:null},footer:{host:null,scrollAdjust:null,floating:null,floatingParent:t('<div class="dtfh-floatingparent"><div class="dtfh-floating-limiter"><div></div></div></div>'),limiter:null,placeholder:null}};var a=this.dom;a.header.host=a.thead.parent(),a.header.limiter=a.header.floatingParent.children(),a.header.scrollAdjust=a.header.limiter.children(),a.footer.host=a.tfoot.parent(),a.footer.limiter=a.footer.floatingParent.children(),a.footer.scrollAdjust=a.footer.limiter.children();var f=o.settings()[0];if(f._fixedHeader)throw'FixedHeader already initialised on table '+f.nTable.id;f._fixedHeader=this,this._constructor()};return t.extend(r.prototype,{destroy:function(){var o=this.dom;this.s.dt.off('.dtfc'),t(e).off(this.s.namespace),o.header.rightBlocker&&o.header.rightBlocker.remove(),o.header.leftBlocker&&o.header.leftBlocker.remove(),o.footer.rightBlocker&&o.footer.rightBlocker.remove(),o.footer.leftBlocker&&o.footer.leftBlocker.remove(),this.c.header&&this._modeChange('in-place','header',!0),this.c.footer&&o.tfoot.length&&this._modeChange('in-place','footer',!0)},enable:function(t,e,o){this.s.enable=t,this.s.enableType=o,(e||void 0===e)&&(this._positions(),this._scroll(!0))},enabled:function(){return this.s.enable},headerOffset:function(t){return void 0!==t&&(this.c.headerOffset=t,this.update()),this.c.headerOffset},footerOffset:function(t){return void 0!==t&&(this.c.footerOffset=t,this.update()),this.c.footerOffset},update:function(e){var o=this.s.dt.table().node();(this.s.enable||this.s.autoDisable)&&(t(o).is(':visible')?(this.s.autoDisable=!1,this.enable(!0,!1)):(this.s.autoDisable=!0,this.enable(!1,!1)),0!==t(o).children('thead').length&&(this._positions(),this._scroll(void 0===e||e),this._widths(this.dom.header),this._widths(this.dom.footer)))},_constructor:function(){var o=this,s=this.s.dt;t(e).on('scroll'+this.s.namespace,function(){o._scroll()}).on('resize'+this.s.namespace,i.util.throttle(function(){o.s.position.windowHeight=t(e).height(),o.update()},50));var r=t('.fh-fixedHeader');!this.c.headerOffset&&r.length&&(this.c.headerOffset=r.outerHeight());var d=t('.fh-fixedFooter');!this.c.footerOffset&&d.length&&(this.c.footerOffset=d.outerHeight()),s.on('column-reorder.dt.dtfc column-visibility.dt.dtfc column-sizing.dt.dtfc responsive-display.dt.dtfc',function(t,e){o.update()}).on('draw.dt.dtfc',function(t,e){o.update(e!==s.settings()[0])}),s.on('destroy.dtfc',function(){o.destroy()}),this._positions(),this._scroll()},_clone:function(e,o){var i=this,s=this.s.dt,r=this.dom[e],d='header'===e?this.dom.thead:this.dom.tfoot;if('footer'!==e||!this._scrollEnabled())if(!o&&r.floating)r.floating.removeClass('fixedHeader-floating fixedHeader-locked');else{r.floating&&(null!==r.placeholder&&r.placeholder.detach(),r.floating.detach());var a=t(s.table().node()),f=t(a.parent()),n=this._scrollEnabled();r.floating=t(s.table().node().cloneNode(!1)).attr('aria-hidden','true').css({top:0,left:0}).removeAttr('id'),r.floatingParent.css({width:f[0].offsetWidth,position:'fixed',left:n?a.offset().left+f.scrollLeft():0}).css('header'===e?{top:this.c.headerOffset,bottom:''}:{top:'',bottom:this.c.footerOffset}).addClass('footer'===e?'dtfh-floatingparent-foot':'dtfh-floatingparent-head').appendTo('body').children().eq(0),r.limiter.css({width:'100%',overflow:'hidden',height:'fit-content'}),r.scrollAdjust.append(r.floating),this._stickyPosition(r.floating,'-');var l=function(){var t=f.scrollLeft();i.s.scrollLeft={footer:t,header:t},r.limiter.scrollLeft(i.s.scrollLeft.header)};l(),f.off('scroll.dtfh').on('scroll.dtfh',l),r.scrollAdjust.css({width:'fit-content',paddingRight:i.s.dt.settings()[0].oBrowser.barWidth});let o=t('footer'===e?'div.dtfc-bottom-blocker':'div.dtfc-top-blocker',s.table().container());o.length&&o.clone().appendTo(r.floatingParent).css({position:'fixed',right:o.width()}),r.placeholder=d.clone(!1),r.placeholder.find('*[id]').removeAttr('id'),r.host.prepend(r.placeholder),r.floating.append(d),this._widths(r)}},_stickyPosition:function(e,o){if(this._scrollEnabled()){var i='rtl'===t(this.s.dt.table().node()).css('direction');e.find('th').each(function(){if('sticky'===t(this).css('position')){var e,o=t(this).css('right'),s=t(this).css('left');'auto'===o||i?'auto'!==s&&i&&(e=+s.replace(/px/g,''),t(this).css('left',e>0?e:0)):(e=+o.replace(/px/g,''),t(this).css('right',e>0?e:0))}})}},_horizontal:function(e,o){var i=this.dom[e],s=this.s.scrollLeft;if(i.floating&&s[e]!==o){if(this._scrollEnabled()){var r=t(t(this.s.dt.table().node()).parent()).scrollLeft();i.floating.scrollLeft(r),i.floatingParent.scrollLeft(r)}s[e]=o}},_modeChange:function(i,s,r){var d=this.s.dt,a=this.dom[s],f=this.s.position,n=this._scrollEnabled();if('footer'!==s||!n){var l=function(t){a.floating[0].style.setProperty('width',t+'px','important'),n||a.floatingParent[0].style.setProperty('width',t+'px','important')},h=this.dom['footer'===s?'tfoot':'thead'],c=t.contains(h[0],o.activeElement)?o.activeElement:null,p=t(t(this.s.dt.table().node()).parent());if('in-place'===i)a.placeholder&&(a.placeholder.remove(),a.placeholder=null),t.contains(a.host[0],h[0])||('header'===s?a.host.prepend(h):a.host.append(h)),a.floating&&(a.floating.remove(),a.floating=null,this._stickyPosition(a.host,'+')),a.floatingParent&&(a.floatingParent.find('div.dtfc-top-blocker').remove(),a.floatingParent.remove()),t(t(a.host.parent()).parent()).scrollLeft(p.scrollLeft());else if('in'===i){this._clone(s,r);var g,u=p.offset(),b=t(o).scrollTop(),m=b+t(e).height(),v=n?u.top:f.tbodyTop,H=n?u.top+p.outerHeight():f.tfootTop;g='footer'===s?v>m?f.tfootHeight:v+f.tfootHeight-m:b+this.c.headerOffset+f.theadHeight-H;var x='header'===s?'top':'bottom',w=this.c[s+'Offset']-(g>0?g:0);a.floating.addClass('fixedHeader-floating'),a.floatingParent.css(x,w).css({left:f.left,'z-index':3}),l(f.width),'footer'===s&&a.floating.css('top','')}else'below'===i?(this._clone(s,r),a.floating.addClass('fixedHeader-locked'),a.floatingParent.css({position:'absolute',top:f.tfootTop-f.theadHeight,left:f.left+'px'}),l(f.width)):'above'===i&&(this._clone(s,r),a.floating.addClass('fixedHeader-locked'),a.floatingParent.css({position:'absolute',top:f.tbodyTop,left:f.left+'px'}),l(f.width));c&&c!==o.activeElement&&setTimeout(function(){c.focus()},10),this.s.scrollLeft.header=-1,this.s.scrollLeft.footer=-1,this.s[s+'Mode']=i,d.trigger('fixedheader-mode',[i,s])}},_positions:function(){var e=this.s.dt,o=e.table(),i=this.s.position,s=this.dom,r=t(o.node()),d=this._scrollEnabled(),a=t(e.table().header()),f=t(e.table().footer()),n=s.tbody,l=r.parent();i.visible=r.is(':visible'),i.width=r.outerWidth(),i.left=r.offset().left,i.theadTop=a.offset().top,i.tbodyTop=d?l.offset().top:n.offset().top,i.tbodyHeight=d?l.outerHeight():n.outerHeight(),i.theadHeight=a.outerHeight(),i.theadBottom=i.theadTop+i.theadHeight,i.tfootTop=i.tbodyTop+i.tbodyHeight,f.length?(i.tfootBottom=i.tfootTop+f.outerHeight(),i.tfootHeight=f.outerHeight()):(i.tfootBottom=i.tfootTop,i.tfootHeight=0)},_scroll:function(i){if(!this.s.dt.settings()[0].bDestroying){var s,r,d=this._scrollEnabled(),a=t(this.s.dt.table().node()).parent(),f=a.offset(),n=a.outerHeight(),l=t(o).scrollLeft(),h=t(o).scrollTop(),c=t(e).height()+h,p=this.s.position,g=d?f.top:p.tbodyTop,u=d?f.left:p.left,b=d?f.top+n:p.tfootTop,m=d?a.outerWidth():p.tbodyWidth;if(this.c.header){if(this.s.enable)if(!p.visible||h+this.c.headerOffset+p.theadHeight<=g)s='in-place';else if(h+this.c.headerOffset+p.theadHeight>g&&h+this.c.headerOffset+p.theadHeight<b)if(s='in',h+this.c.headerOffset+p.theadHeight>b||void 0===this.dom.header.floatingParent)i=!0;else{var v=this.dom.header.floatingParent.css({top:this.c.headerOffset,position:'fixed'}).children().eq(0);0===v.find(this.dom.header.floating).length&&v.append(this.dom.header.floating)}else s='below';else s='in-place';(i||s!==this.s.headerMode)&&this._modeChange(s,'header',i),this._horizontal('header',l)}var H={offset:{top:0,left:0},height:0},x={offset:{top:0,left:0},height:0};if(this.c.footer&&this.dom.tfoot.length&&this.dom.tfoot.find('th, td').length){this.s.enable?!p.visible||p.tfootBottom+this.c.footerOffset<=c?r='in-place':b+p.tfootHeight+this.c.footerOffset>c&&g+this.c.footerOffset<c?(r='in',i=!0):r='above':r='in-place',(i||r!==this.s.footerMode)&&this._modeChange(r,'footer',i),this._horizontal('footer',l);var w=function(t){return{offset:t.offset(),height:t.outerHeight()}};if(H=this.dom.header.floating?w(this.dom.header.floating):w(this.dom.thead),x=this.dom.footer.floating?w(this.dom.footer.floating):w(this.dom.tfoot),d&&x.offset.top>h){var _=h-f.top,y=c+(_>-H.height?_:0)-(H.offset.top+(_<-H.height?H.height:0)+x.height);y<0&&(y=0),a.outerHeight(y),Math.round(a.outerHeight())>=Math.round(y)?t(this.dom.tfoot.parent()).addClass('fixedHeader-floating'):t(this.dom.tfoot.parent()).removeClass('fixedHeader-floating')}}if(this.dom.header.floating&&this.dom.header.floatingParent.css('left',u-l),this.dom.footer.floating&&this.dom.footer.floatingParent.css('left',u-l),void 0!==this.s.dt.settings()[0]._fixedColumns){var T=function(e,o,i){if(void 0===i){var r=t('div.dtfc-'+e+'-'+o+'-blocker');i=0===r.length?null:r.clone().css('z-index',1)}return null!==i&&('in'===s||'below'===s?i.appendTo('body').css({top:'top'===o?H.offset.top:x.offset.top,left:'right'===e?u+m-i.width():u}):i.detach()),i};this.dom.header.rightBlocker=T('right','top',this.dom.header.rightBlocker),this.dom.header.leftBlocker=T('left','top',this.dom.header.leftBlocker),this.dom.footer.rightBlocker=T('right','bottom',this.dom.footer.rightBlocker),this.dom.footer.leftBlocker=T('left','bottom',this.dom.footer.leftBlocker)}}},_scrollEnabled:function(){var t=this.s.dt.settings()[0].oScroll;return''!==t.sY||''!==t.sX},_widths:function(e){if(e&&e.placeholder){var o=t(this.s.dt.table().node()),i=t(o.parent());e.floatingParent.css('width',i[0].offsetWidth),e.floating.css('width',o[0].offsetWidth),t('colgroup',e.floating).remove();for(var s=e.placeholder.parent().find('colgroup').clone().appendTo(e.floating).find('col'),r=this.s.dt.columns(':visible').widths(),d=0;d<r.length;d++)s.eq(d).css('width',r[d])}}}),r.version='4.0.4',r.defaults={header:!0,footer:!1,headerOffset:0,footerOffset:0},t.fn.dataTable.FixedHeader=r,t.fn.DataTable.FixedHeader=r,t(o).on('init.dt.dtfh',function(e,o,s){if('dt'===e.namespace){var d=o.oInit.fixedHeader,a=i.defaults.fixedHeader;if((d||a)&&!o._fixedHeader){var f=t.extend({},a,d);!1!==d&&new r(o,f)}}}),i.Api.register('fixedHeader()',function(){}),i.Api.register('fixedHeader.adjust()',function(){return this.iterator('table',function(t){var e=t._fixedHeader;e&&e.update()})}),i.Api.register('fixedHeader.enable()',function(t){return this.iterator('table',function(e){var o=e._fixedHeader;t=void 0===t||t,o&&t!==o.enabled()&&o.enable(t)})}),i.Api.register('fixedHeader.enabled()',function(){if(this.context.length){var t=this.context[0]._fixedHeader;if(t)return t.enabled()}return!1}),i.Api.register('fixedHeader.disable()',function(){return this.iterator('table',function(t){var e=t._fixedHeader;e&&e.enabled()&&e.enable(!1)})}),t.each(['header','footer'],function(t,e){i.Api.register('fixedHeader.'+e+'Offset()',function(t){var o=this.context;return void 0===t?o.length&&o[0]._fixedHeader?o[0]._fixedHeader[e+'Offset']():void 0:this.iterator('table',function(o){var i=o._fixedHeader;i&&i[e+'Offset'](t)})})}),i});
6
+ //# sourceMappingURL=dataTables.fixedHeader.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["factory","define","amd","$","window","document","exports","jq","require","cjsRequires","root","fn","dataTable","module","jQuery","DataTable","_instCounter","FixedHeader","dt","config","versionCheck","this","Api","c","extend","defaults","s","position","theadTop","tbodyTop","tfootTop","tfootBottom","width","left","tfootHeight","theadHeight","windowHeight","height","visible","headerMode","footerMode","autoWidth","settings","oFeatures","bAutoWidth","namespace","scrollLeft","header","footer","enable","autoDisable","dom","floatingHeader","thead","table","tbody","body","tfoot","host","scrollAdjust","floating","floatingParent","limiter","placeholder","parent","children","dtSettings","_fixedHeader","nTable","id","_constructor","prototype","destroy","off","rightBlocker","remove","leftBlocker","_modeChange","length","update","type","enableType","undefined","_positions","_scroll","enabled","headerOffset","offset","footerOffset","force","node","is","_widths","that","on","util","throttle","autoHeader","outerHeight","autoFooter","e","ctx","_clone","item","itemDom","itemElement","_scrollEnabled","removeClass","detach","tableNode","scrollBody","scrollEnabled","cloneNode","attr","css","top","removeAttr","offsetWidth","bottom","addClass","appendTo","eq","overflow","append","_stickyPosition","scrollLeftUpdate","paddingRight","oBrowser","barWidth","blocker","container","clone","right","find","prepend","el","sign","rtl","each","potential","replace","_horizontal","lastScrollLeft","newScrollLeft","mode","forceChange","importantWidth","w","style","setProperty","tablePart","focus","contains","activeElement","shuffle","scrollOffset","windowTop","scrollTop","windowBottom","bodyTop","bodyBottom","prop","val","setTimeout","trigger","outerWidth","tbodyHeight","theadBottom","bDestroying","scrollHeight","windowLeft","bodyLeft","bodyWidth","tbodyWidth","child","getOffsetHeight","overlap","newHeight","Math","round","_fixedColumns","adjustBlocker","side","end","oScroll","sY","sX","cols","widths","columns","i","version","json","init","oInit","fixedHeader","opts","register","iterator","fh","flag","context"],"sources":["dataTables.fixedHeader.js"],"mappings":";;;;CAKC,SAAUA,GACV,GAAuB,mBAAXC,QAAyBA,OAAOC,IAE3CD,OAAQ,CAAC,SAAU,kBAAmB,SAAWE,GAChD,OAAOH,EAASG,EAAGC,OAAQC,SAC5B,QAEI,GAAwB,iBAAZC,QAAuB,CAEvC,IAAIC,EAAKC,QAAQ,UACbC,EAAc,SAAUC,EAAMP,GAC1BA,EAAE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AEZ,EACD,GAEA9C,EAAEuI,KAAK,CAAC,SAAU,UAAW,SAAUoD,EAAGvD,GACzCxH,EAAUO,IAAI+K,SAAS,eAAiB9D,EAAK,WAAY,SAAUhD,GAClE,IAAIc,EAAMhF,KAAKoL,QAEf,YAAevH,IAAXK,EACIc,EAAIvB,QAAUuB,EAAI,GAAGlC,aACzBkC,EAAI,GAAGlC,aAAaoE,EAAK,iBACzBrD,EAGG7D,KAAKiL,SAAS,QAAS,SAAUjG,GACvC,IAAIkG,EAAKlG,EAAIlC,aAEToI,GACHA,EAAGhE,EAAK,UAAUhD,EAEpB,EACD,EACD,GAGOxE,CACP","ignoreList":[]}
@@ -0,0 +1,59 @@
1
+ /*!
2
+ * Bootstrap 5 styling wrapper for FixedHeader
3
+ * © SpryMedia Ltd - datatables.net/license
4
+ */
5
+
6
+ (function( factory ){
7
+ if ( typeof define === 'function' && define.amd ) {
8
+ // AMD
9
+ define( ['jquery', 'datatables.net-bs5', 'datatables.net-fixedheader'], function ( $ ) {
10
+ return factory( $, window, document );
11
+ } );
12
+ }
13
+ else if ( typeof exports === 'object' ) {
14
+ // CommonJS
15
+ var jq = require('jquery');
16
+ var cjsRequires = function (root, $) {
17
+ if ( ! $.fn.dataTable ) {
18
+ require('datatables.net-bs5')(root, $);
19
+ }
20
+
21
+ if ( ! $.fn.dataTable.FixedHeader ) {
22
+ require('datatables.net-fixedheader')(root, $);
23
+ }
24
+ };
25
+
26
+ if (typeof window === 'undefined') {
27
+ module.exports = function (root, $) {
28
+ if ( ! root ) {
29
+ // CommonJS environments without a window global must pass a
30
+ // root. This will give an error otherwise
31
+ root = window;
32
+ }
33
+
34
+ if ( ! $ ) {
35
+ $ = jq( root );
36
+ }
37
+
38
+ cjsRequires( root, $ );
39
+ return factory( $, root, root.document );
40
+ };
41
+ }
42
+ else {
43
+ cjsRequires( window, jq );
44
+ module.exports = factory( jq, window, window.document );
45
+ }
46
+ }
47
+ else {
48
+ // Browser
49
+ factory( jQuery, window, document );
50
+ }
51
+ }(function( $, window, document ) {
52
+ 'use strict';
53
+ var DataTable = $.fn.dataTable;
54
+
55
+
56
+
57
+
58
+ return DataTable;
59
+ }));
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Bootstrap 5 styling wrapper for FixedHeader
3
+ * © SpryMedia Ltd - datatables.net/license
4
+ */
5
+ !function(e){if('function'==typeof define&&define.amd)define(['jquery','datatables.net-bs5','datatables.net-fixedheader'],function(n){return e(n,window,document)});else if('object'==typeof exports){var n=require('jquery'),t=function(e,n){n.fn.dataTable||require('datatables.net-bs5')(e,n),n.fn.dataTable.FixedHeader||require('datatables.net-fixedheader')(e,n)};'undefined'==typeof window?module.exports=function(d,a){return d||(d=window),a||(a=n(d)),t(d,a),e(a,d,d.document)}:(t(window,n),module.exports=e(n,window,window.document))}else e(jQuery,window,document)}(function(e,n,t){'use strict';return e.fn.dataTable});
6
+ //# sourceMappingURL=fixedHeader.bootstrap5.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["factory","define","amd","$","window","document","exports","jq","require","cjsRequires","root","fn","dataTable","FixedHeader","module","jQuery"],"sources":["fixedHeader.bootstrap5.js"],"mappings":";;;;CAKC,SAAUA,GACV,GAAuB,mBAAXC,QAAyBA,OAAOC,IAE3CD,OAAQ,CAAC,SAAU,qBAAsB,8BAA+B,SAAWE,GAClF,OAAOH,EAASG,EAAGC,OAAQC,SAC5B,QAEI,GAAwB,iBAAZC,QAAuB,CAEvC,IAAIC,EAAKC,QAAQ,UACbC,EAAc,SAAUC,EAAMP,GAC1BA,EAAEQ,GAAGC,WACXJ,QAAQ,qBAARA,CAA8BE,EAAMP,GAG9BA,EAAEQ,GAAGC,UAAUC,aACrBL,QAAQ,6BAARA,CAAsCE,EAAMP,EAE9C,EAEsB,oBAAXC,OACVU,OAAOR,QAAU,SAAUI,EAAMP,GAYhC,OAXOO,IAGNA,EAAON,QAGDD,IACNA,EAAII,EAAIG,IAGTD,EAAaC,EAAMP,GACZH,EAASG,EAAGO,EAAMA,EAAKL,SAC/B,GAGAI,EAAaL,OAAQG,GACrBO,OAAOR,QAAUN,EAASO,EAAIH,OAAQA,OAAOC,UAE/C,MAGCL,EAASe,OAAQX,OAAQC,SAE3B,CA7CA,CA6CE,SAAUF,EAAGC,EAAQC,GACvB,aAMA,OALgBF,EAAEQ,GAAGC,SAMrB","ignoreList":[]}
@@ -47,6 +47,36 @@
47
47
  noAlliance: '{{ scanDataNoAlliance|escapejs }}',
48
48
  npcCorp: '{{ scanDataNpcCorp|escapejs }}',
49
49
  }
50
+ },
51
+ dataTables: {
52
+ dom: 'lrt',
53
+ ordering: {
54
+ indicators: false,
55
+ handler: false
56
+ },
57
+ columnControl: [
58
+ {
59
+ target: 0,
60
+ content: [
61
+ 'order',
62
+ // [
63
+ // 'orderAsc',
64
+ // 'orderDesc',
65
+ // 'spacer',
66
+ // 'orderAddAsc',
67
+ // 'orderAddDesc',
68
+ // 'spacer',
69
+ // 'orderRemove'
70
+ // ]
71
+ ]
72
+ },
73
+ {
74
+ target: 1,
75
+ content: [
76
+ 'search'
77
+ ]
78
+ }
79
+ ]
50
80
  }
51
81
  }
52
82
  </script>
@@ -0,0 +1,11 @@
1
+ {% load sri %}
2
+
3
+ {% sri_static "aa_intel_tool/libs/DataTables/2.3.4/dataTables.bootstrap5.min.css" %}
4
+
5
+ {% if extColumnControl == True %}
6
+ {% sri_static "aa_intel_tool/libs/DataTables/Extensions/ColumnControl/1.1.1/css/columnControl.bootstrap5.min.css" %}
7
+ {% endif %}
8
+
9
+ {% if extFixedHeader == True %}
10
+ {% sri_static "aa_intel_tool/libs/DataTables/Extensions/FixedHeader/4.0.4/css/fixedHeader.bootstrap5.min.css" %}
11
+ {% endif %}
@@ -0,0 +1,14 @@
1
+ {% load sri %}
2
+
3
+ {% sri_static 'aa_intel_tool/libs/DataTables/2.3.4/datatables.min.js' %}
4
+ {% sri_static 'aa_intel_tool/libs/DataTables/2.3.4/dataTables.bootstrap5.min.js' %}
5
+
6
+ {% if extColumnControl == True %}
7
+ {% sri_static "aa_intel_tool/libs/DataTables/Extensions/ColumnControl/1.1.1/js/dataTables.columnControl.min.js" %}
8
+ {% sri_static "aa_intel_tool/libs/DataTables/Extensions/ColumnControl/1.1.1/js/columnControl.bootstrap5.min.js" %}
9
+ {% endif %}
10
+
11
+ {% if extFixedHeader == True %}
12
+ {% sri_static "aa_intel_tool/libs/DataTables/Extensions/FixedHeader/4.0.4/js/dataTables.fixedHeader.min.js" %}
13
+ {% sri_static "aa_intel_tool/libs/DataTables/Extensions/FixedHeader/4.0.4/js/fixedHeader.bootstrap5.min.js" %}
14
+ {% endif %}
@@ -12,7 +12,7 @@
12
12
  <div class="card card-default border-0">
13
13
  <div class="card-body">
14
14
  <div class="table-local-scan table-local-scan-alliances table-aa-intel d-none">
15
- <table class="table table-sm table-sortable aa-intel-alliance-participation-list" style="width: 100%;">
15
+ <table class="table table-sm table-sortable aa-intel-alliance-participation-list w-100">
16
16
  <thead>
17
17
  <tr>
18
18
  <th>{% translate "Alliance" %}</th>
@@ -12,7 +12,7 @@
12
12
  <div class="card card-default border-0">
13
13
  <div class="card-body">
14
14
  <div class="table-local-scan table-local-scan-corporations table-aa-intel d-none">
15
- <table class="table table-sm table-sortable aa-intel-corporation-participation-list" style="width: 100%;">
15
+ <table class="table table-sm table-sortable aa-intel-corporation-participation-list w-100">
16
16
  <thead>
17
17
  <tr>
18
18
  <th>{% translate "Corporation" %}</th>
@@ -11,12 +11,12 @@
11
11
  <div class="card card-default border-0">
12
12
  <div class="card-body">
13
13
  <div class="table-local-scan table-local-scan-pilots table-aa-intel d-none">
14
- <table class="table table-sortable table-sm aa-intel-pilot-participation-list" style="width: 100%;">
14
+ <table class="table table-sortable table-sm aa-intel-pilot-participation-list w-100">
15
15
  <thead>
16
16
  <tr>
17
17
  <th>{% translate "Pilot" %}</th>
18
- <th>{% translate "Alliance" %}</th>
19
18
  <th>{% translate "Corporation" %}</th>
19
+ <th>{% translate "Alliance" %}</th>
20
20
  </tr>
21
21
  </thead>
22
22
  </table>
@@ -11,7 +11,7 @@
11
11
  <div class="card card-default border-0">
12
12
  <div class="card-body">
13
13
  <div class="table-dscan table-dscan-{{ dscan_section }} table-aa-intel">
14
- <table class="table table-sm table-sortable aa-intel-dscan-{{ dscan_section }}-list" style="width: 100%;">
14
+ <table class="table table-sm table-sortable aa-intel-dscan-{{ dscan_section }}-list w-100">
15
15
  <thead>
16
16
  <tr>
17
17
  <th>{% translate "Type" %}</th>
@@ -14,7 +14,7 @@
14
14
  <div class="card card-default border-0">
15
15
  <div class="card-body">
16
16
  <div class="table-dscan table-dscan-ship-classes table-dscan-ship-classes-{{ dscan_section }} table-aa-intel d-none">
17
- <table class="table table-sm table-sortable aa-intel-dscan-ship-classes aa-intel-dscan-ship-classes-{{ dscan_section }}-list" style="width: 100%;">
17
+ <table class="table table-sm table-sortable aa-intel-dscan-ship-classes aa-intel-dscan-ship-classes-{{ dscan_section }}-list w-100">
18
18
  <thead>
19
19
  <tr>
20
20
  <th>
@@ -11,7 +11,7 @@
11
11
  <div class="card card-default border-0">
12
12
  <div class="card-body">
13
13
  <div class="table-dscan table-dscan-ship-types table-aa-intel d-none">
14
- <table class="table table-sm table-sortable table-no-images aa-intel-dscan-ship-types aa-intel-dscan-ship-types-list" style="width: 100%;">
14
+ <table class="table table-sm table-sortable table-no-images aa-intel-dscan-ship-types aa-intel-dscan-ship-types-list w-100">
15
15
  <thead>
16
16
  <tr>
17
17
  <th>
@@ -11,7 +11,7 @@
11
11
  <div class="card card-default border-0">
12
12
  <div class="card-body">
13
13
  <div class="table-dscan table-fleetcomp-pilot-ships table-aa-intel d-none">
14
- <table class="table table-sm table-sortable aa-intel-fleetcomp-pilot-ships-list" style="width: 100%;">
14
+ <table class="table table-sm table-sortable aa-intel-fleetcomp-pilot-ships-list w-100">
15
15
  <thead>
16
16
  <tr>
17
17
  <th>{% translate "Pilot" %}</th>
@@ -22,7 +22,7 @@
22
22
  {% endblock %}
23
23
 
24
24
  {% block extra_css %}
25
- {% include "bundles/datatables-css-bs5.html" %}
25
+ {% include "aa_intel_tool/bundles/datatables-2-css.html" with extColumnControl=True %}
26
26
  {% include "aa_intel_tool/bundles/aa-intel-tool-css.html" %}
27
27
  {% endblock %}
28
28
 
@@ -37,7 +37,7 @@
37
37
  }
38
38
  </script>
39
39
 
40
- {% include "bundles/datatables-js-bs5.html" %}
40
+ {% include "aa_intel_tool/bundles/datatables-2-js.html" with extColumnControl=True %}
41
41
  {% include "bundles/clipboard-js.html" %}
42
42
  {% include "aa_intel_tool/bundles/aa-intel-tool-js.html" %}
43
43
  {% include "aa_intel_tool/bundles/aa-intel-tool-chatscan-js.html" %}
@@ -20,7 +20,7 @@
20
20
  {% endblock %}
21
21
 
22
22
  {% block extra_css %}
23
- {% include "bundles/datatables-css-bs5.html" %}
23
+ {% include "aa_intel_tool/bundles/datatables-2-css.html" with extColumnControl=True %}
24
24
  {% include "aa_intel_tool/bundles/aa-intel-tool-css.html" %}
25
25
  {% endblock %}
26
26
 
@@ -39,8 +39,8 @@
39
39
  }
40
40
  </script>
41
41
 
42
- {% include "bundles/datatables-js-bs5.html" %}
43
42
  {% include "bundles/clipboard-js.html" %}
43
+ {% include "aa_intel_tool/bundles/datatables-2-js.html" with extColumnControl=True %}
44
44
  {% include "aa_intel_tool/bundles/aa-intel-tool-js.html" %}
45
45
  {% include "aa_intel_tool/bundles/aa-intel-tool-dscan-js.html" %}
46
46
  {% endblock extra_javascript %}
@@ -22,7 +22,7 @@
22
22
  {% endblock %}
23
23
 
24
24
  {% block extra_css %}
25
- {% include "bundles/datatables-css-bs5.html" %}
25
+ {% include "aa_intel_tool/bundles/datatables-2-css.html" with extColumnControl=True %}
26
26
  {% include "aa_intel_tool/bundles/aa-intel-tool-css.html" %}
27
27
  {% endblock %}
28
28
 
@@ -40,7 +40,7 @@
40
40
  }
41
41
  </script>
42
42
 
43
- {% include "bundles/datatables-js-bs5.html" %}
43
+ {% include "aa_intel_tool/bundles/datatables-2-js.html" with extColumnControl=True %}
44
44
  {% include "bundles/clipboard-js.html" %}
45
45
  {% include "aa_intel_tool/bundles/aa-intel-tool-js.html" %}
46
46
  {% include "aa_intel_tool/bundles/aa-intel-tool-fleetcomp-js.html" %}
@@ -1,3 +1,41 @@
1
1
  """
2
2
  Initialize the tests
3
3
  """
4
+
5
+ # Standard Library
6
+ import socket
7
+
8
+ # Django
9
+ from django.test import TestCase
10
+
11
+
12
+ class SocketAccessError(Exception):
13
+ """Error raised when a test script accesses the network"""
14
+
15
+
16
+ class BaseTestCase(TestCase):
17
+ """Variation of Django's TestCase class that prevents any network use.
18
+
19
+ Example:
20
+
21
+ .. code-block:: python
22
+
23
+ class TestMyStuff(BaseTestCase):
24
+ def test_should_do_what_i_need(self): ...
25
+
26
+ """
27
+
28
+ @classmethod
29
+ def setUpClass(cls):
30
+ cls.socket_original = socket.socket
31
+ socket.socket = cls.guard
32
+ return super().setUpClass()
33
+
34
+ @classmethod
35
+ def tearDownClass(cls):
36
+ socket.socket = cls.socket_original
37
+ return super().tearDownClass()
38
+
39
+ @staticmethod
40
+ def guard(*args, **kwargs):
41
+ raise SocketAccessError("Attempted to access network")
@@ -6,17 +6,17 @@ Test auth_hooks
6
6
  from http import HTTPStatus
7
7
 
8
8
  # Django
9
- from django.test import TestCase
10
9
  from django.urls import reverse
11
10
 
12
11
  # Alliance Auth (External Libs)
13
12
  from app_utils.testing import create_fake_user
14
13
 
15
14
  # AA Intel Tool
15
+ from aa_intel_tool.tests import BaseTestCase
16
16
  from aa_intel_tool.tests.utils import response_content_to_str
17
17
 
18
18
 
19
- class TestAccess(TestCase):
19
+ class TestAccess(BaseTestCase):
20
20
  """
21
21
  Test access
22
22
  """
@@ -4,15 +4,16 @@ Test for admin.py
4
4
 
5
5
  # Django
6
6
  from django.contrib import admin
7
- from django.test import RequestFactory, TestCase
7
+ from django.test import RequestFactory
8
8
  from django.urls import reverse
9
9
 
10
10
  # AA Intel Tool
11
11
  from aa_intel_tool.admin import BaseReadOnlyAdminMixin, ScanAdmin
12
12
  from aa_intel_tool.models import Scan
13
+ from aa_intel_tool.tests import BaseTestCase
13
14
 
14
15
 
15
- class TestBaseReadOnlyAdminMixin(TestCase):
16
+ class TestBaseReadOnlyAdminMixin(BaseTestCase):
16
17
  """
17
18
  Test the BaseReadOnlyAdminMixin class
18
19
  """
@@ -60,7 +61,7 @@ class TestBaseReadOnlyAdminMixin(TestCase):
60
61
  self.assertFalse(BaseReadOnlyAdminMixin.has_delete_permission(request))
61
62
 
62
63
 
63
- class TestScanAdmin(TestCase):
64
+ class TestScanAdmin(BaseTestCase):
64
65
  """
65
66
  Test the ScanAdmin class
66
67
  """
@@ -7,15 +7,16 @@ from unittest import mock
7
7
 
8
8
  # Django
9
9
  from django.conf import settings
10
- from django.test import TestCase, override_settings
10
+ from django.test import override_settings
11
11
 
12
12
  # AA Intel Tool
13
13
  from aa_intel_tool.app_settings import AppSettings, debug_enabled
14
+ from aa_intel_tool.tests import BaseTestCase
14
15
 
15
16
  SETTINGS_PATH = "aa_intel_tool.app_settings"
16
17
 
17
18
 
18
- class TestAppSettings(TestCase):
19
+ class TestAppSettings(BaseTestCase):
19
20
  """
20
21
  Tests for App Settings
21
22
  """
@@ -6,17 +6,17 @@ Test auth_hooks
6
6
  from http import HTTPStatus
7
7
 
8
8
  # Django
9
- from django.test import TestCase
10
9
  from django.urls import reverse
11
10
 
12
11
  # Alliance Auth (External Libs)
13
12
  from app_utils.testing import create_fake_user
14
13
 
15
14
  # AA Intel Tool
15
+ from aa_intel_tool.tests import BaseTestCase
16
16
  from aa_intel_tool.tests.utils import response_content_to_str
17
17
 
18
18
 
19
- class TestHooks(TestCase):
19
+ class TestHooks(BaseTestCase):
20
20
  """
21
21
  Test the app hook into allianceauth
22
22
  """
@@ -2,14 +2,12 @@
2
2
  Test for the data_structures helper => aa_intel_tool/helper/data_structure.py
3
3
  """
4
4
 
5
- # Django
6
- from django.test import TestCase
7
-
8
5
  # AA Intel Tool
9
6
  from aa_intel_tool.helper.data_structure import dict_to_list
7
+ from aa_intel_tool.tests import BaseTestCase
10
8
 
11
9
 
12
- class TestHelperDataStructures(TestCase):
10
+ class TestHelperDataStructures(BaseTestCase):
13
11
  """
14
12
  Test the data_structures helper
15
13
  """
@@ -5,9 +5,6 @@ Tests for the helper functions in the eve_character module.
5
5
  # Standard Library
6
6
  from unittest.mock import Mock, patch
7
7
 
8
- # Django
9
- from django.test import TestCase
10
-
11
8
  # Alliance Auth
12
9
  from allianceauth.eveonline.models import (
13
10
  EveAllianceInfo,
@@ -22,9 +19,10 @@ from aa_intel_tool.helper.eve_character import (
22
19
  _create_corporation,
23
20
  get_or_create_character,
24
21
  )
22
+ from aa_intel_tool.tests import BaseTestCase
25
23
 
26
24
 
27
- class TestCreateAlliance(TestCase):
25
+ class TestCreateAlliance(BaseTestCase):
28
26
  """
29
27
  Test the _create_alliance function.
30
28
  """
@@ -106,7 +104,7 @@ class TestCreateAlliance(TestCase):
106
104
  mock_create_alliance.assert_not_called()
107
105
 
108
106
 
109
- class TestCreateCorporation(TestCase):
107
+ class TestCreateCorporation(BaseTestCase):
110
108
  """
111
109
  Test the _create_corporation function.
112
110
  """
@@ -187,7 +185,7 @@ class TestCreateCorporation(TestCase):
187
185
  mock_create_corporation.assert_not_called()
188
186
 
189
187
 
190
- class TestCreateCharacter(TestCase):
188
+ class TestCreateCharacter(BaseTestCase):
191
189
  """
192
190
  Test the _create_character function.
193
191
  """
@@ -325,7 +323,7 @@ class TestCreateCharacter(TestCase):
325
323
  mock_create_alliance.assert_called_once_with(alliance_id=3001)
326
324
 
327
325
 
328
- class TestGetOrCreateCharacter(TestCase):
326
+ class TestGetOrCreateCharacter(BaseTestCase):
329
327
  """
330
328
  Test the get_or_create_character function.
331
329
  """
@@ -7,13 +7,13 @@ from unittest.mock import patch
7
7
 
8
8
  # Django
9
9
  from django.db import IntegrityError
10
- from django.test import TestCase
11
10
 
12
11
  # AA Intel Tool
13
12
  from aa_intel_tool.models import Scan, ScanData
13
+ from aa_intel_tool.tests import BaseTestCase
14
14
 
15
15
 
16
- class TestScanModel(TestCase):
16
+ class TestScanModel(BaseTestCase):
17
17
  """
18
18
  Test the Scan model
19
19
  """
@@ -130,7 +130,7 @@ class TestScanModel(TestCase):
130
130
  self.assertNotEqual(first=str(scan), second=expected_hash)
131
131
 
132
132
 
133
- class TestScanDataModel(TestCase):
133
+ class TestScanDataModel(BaseTestCase):
134
134
  """
135
135
  Test the ScanData model
136
136
  """