Verified Commit 5b59904c authored by Peter Stanko's avatar Peter Stanko
Browse files

Updated IS Api - fix

parent 08474fac
Pipeline #31650 passed with stage
in 7 minutes and 15 seconds
...@@ -27,7 +27,7 @@ coloredlogs = "*" ...@@ -27,7 +27,7 @@ coloredlogs = "*"
redis = "*" redis = "*"
python-dotenv = "*" python-dotenv = "*"
pyyaml = "*" pyyaml = "*"
muni-is-api = {editable = true,git = "https://git@gitlab.fi.muni.cz/grp-kontr2/is-api.git"} muni-is-api = "*"
authlib = "*" authlib = "*"
pip = "*" pip = "*"
git-url-parse = "*" git-url-parse = "*"
......
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "ec10cc3c180233cfadb2f97d723e92091f10aebd2de5a51717fc00120531ad07" "sha256": "6b8aa000995c5ebe30adaaf10b6c45d98dd5bd4c02520ce619d86ba06336ddc0"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
"default": { "default": {
"alembic": { "alembic": {
"hashes": [ "hashes": [
"sha256:505d41e01dc0c9e6d85c116d0d35dbb0a833dcb490bf483b75abeb06648864e8" "sha256:40b9a619aa5f25ea1e1508adcda88b33704ef28e02c9cfa6471e5c772ecf0829"
], ],
"version": "==1.0.8" "version": "==1.0.9"
}, },
"amqp": { "amqp": {
"hashes": [ "hashes": [
...@@ -94,36 +94,36 @@ ...@@ -94,36 +94,36 @@
}, },
"cffi": { "cffi": {
"hashes": [ "hashes": [
"sha256:00b97afa72c233495560a0793cdc86c2571721b4271c0667addc83c417f3d90f", "sha256:041c81822e9f84b1d9c401182e174996f0bae9991f33725d059b771744290774",
"sha256:0ba1b0c90f2124459f6966a10c03794082a2f3985cd699d7d63c4a8dae113e11", "sha256:046ef9a22f5d3eed06334d01b1e836977eeef500d9b78e9ef693f9380ad0b83d",
"sha256:0bffb69da295a4fc3349f2ec7cbe16b8ba057b0a593a92cbe8396e535244ee9d", "sha256:066bc4c7895c91812eff46f4b1c285220947d4aa46fa0a2651ff85f2afae9c90",
"sha256:21469a2b1082088d11ccd79dd84157ba42d940064abbfa59cf5f024c19cf4891", "sha256:066c7ff148ae33040c01058662d6752fd73fbc8e64787229ea8498c7d7f4041b",
"sha256:2e4812f7fa984bf1ab253a40f1f4391b604f7fc424a3e21f7de542a7f8f7aedf", "sha256:2444d0c61f03dcd26dbf7600cf64354376ee579acad77aef459e34efcb438c63",
"sha256:2eac2cdd07b9049dd4e68449b90d3ef1adc7c759463af5beb53a84f1db62e36c", "sha256:300832850b8f7967e278870c5d51e3819b9aad8f0a2c8dbe39ab11f119237f45",
"sha256:2f9089979d7456c74d21303c7851f158833d48fb265876923edcb2d0194104ed", "sha256:34c77afe85b6b9e967bd8154e3855e847b70ca42043db6ad17f26899a3df1b25",
"sha256:3dd13feff00bddb0bd2d650cdb7338f815c1789a91a6f68fdc00e5c5ed40329b", "sha256:46de5fa00f7ac09f020729148ff632819649b3e05a007d286242c4882f7b1dc3",
"sha256:4065c32b52f4b142f417af6f33a5024edc1336aa845b9d5a8d86071f6fcaac5a", "sha256:4aa8ee7ba27c472d429b980c51e714a24f47ca296d53f4d7868075b175866f4b",
"sha256:51a4ba1256e9003a3acf508e3b4f4661bebd015b8180cc31849da222426ef585", "sha256:4d0004eb4351e35ed950c14c11e734182591465a33e960a4ab5e8d4f04d72647",
"sha256:59888faac06403767c0cf8cfb3f4a777b2939b1fbd9f729299b5384f097f05ea", "sha256:4e3d3f31a1e202b0f5a35ba3bc4eb41e2fc2b11c1eff38b362de710bcffb5016",
"sha256:59c87886640574d8b14910840327f5cd15954e26ed0bbd4e7cef95fa5aef218f", "sha256:50bec6d35e6b1aaeb17f7c4e2b9374ebf95a8975d57863546fa83e8d31bdb8c4",
"sha256:610fc7d6db6c56a244c2701575f6851461753c60f73f2de89c79bbf1cc807f33", "sha256:55cad9a6df1e2a1d62063f79d0881a414a906a6962bc160ac968cc03ed3efcfb",
"sha256:70aeadeecb281ea901bf4230c6222af0248c41044d6f57401a614ea59d96d145", "sha256:5662ad4e4e84f1eaa8efce5da695c5d2e229c563f9d5ce5b0113f71321bcf753",
"sha256:71e1296d5e66c59cd2c0f2d72dc476d42afe02aeddc833d8e05630a0551dad7a", "sha256:59b4dc008f98fc6ee2bb4fd7fc786a8d70000d058c2bbe2698275bc53a8d3fa7",
"sha256:8fc7a49b440ea752cfdf1d51a586fd08d395ff7a5d555dc69e84b1939f7ddee3", "sha256:73e1ffefe05e4ccd7bcea61af76f36077b914f92b76f95ccf00b0c1b9186f3f9",
"sha256:9b5c2afd2d6e3771d516045a6cfa11a8da9a60e3d128746a7fe9ab36dfe7221f", "sha256:a1f0fd46eba2d71ce1589f7e50a9e2ffaeb739fb2c11e8192aa2b45d5f6cc41f",
"sha256:9c759051ebcb244d9d55ee791259ddd158188d15adee3c152502d3b69005e6bd", "sha256:a2e85dc204556657661051ff4bab75a84e968669765c8a2cd425918699c3d0e8",
"sha256:b4d1011fec5ec12aa7cc10c05a2f2f12dfa0adfe958e56ae38dc140614035804", "sha256:a5457d47dfff24882a21492e5815f891c0ca35fefae8aa742c6c263dac16ef1f",
"sha256:b4f1d6332339ecc61275bebd1f7b674098a66fea11a00c84d1c58851e618dc0d", "sha256:a8dccd61d52a8dae4a825cdbb7735da530179fea472903eb871a5513b5abbfdc",
"sha256:c030cda3dc8e62b814831faa4eb93dd9a46498af8cd1d5c178c2de856972fd92", "sha256:ae61af521ed676cf16ae94f30fe202781a38d7178b6b4ab622e4eec8cefaff42",
"sha256:c2e1f2012e56d61390c0e668c20c4fb0ae667c44d6f6a2eeea5d7148dcd3df9f", "sha256:b012a5edb48288f77a63dba0840c92d0504aa215612da4541b7b42d849bc83a3",
"sha256:c37c77d6562074452120fc6c02ad86ec928f5710fbc435a181d69334b4de1d84", "sha256:d2c5cfa536227f57f97c92ac30c8109688ace8fa4ac086d19d0af47d134e2909",
"sha256:c8149780c60f8fd02752d0429246088c6c04e234b895c4a42e1ea9b4de8d27fb", "sha256:d42b5796e20aacc9d15e66befb7a345454eef794fdb0737d1af593447c6c8f45",
"sha256:cbeeef1dc3c4299bd746b774f019de9e4672f7cc666c777cd5b409f0b746dac7", "sha256:dee54f5d30d775f525894d67b1495625dd9322945e7fee00731952e0368ff42d",
"sha256:e113878a446c6228669144ae8a56e268c91b7f1fafae927adc4879d9849e0ea7", "sha256:e070535507bd6aa07124258171be2ee8dfc19119c28ca94c9dfb7efd23564512",
"sha256:e21162bf941b85c0cda08224dade5def9360f53b09f9f259adb85fc7dd0e7b35", "sha256:e1ff2748c84d97b065cc95429814cdba39bcbd77c9c85c89344b317dc0d9cbff",
"sha256:fb6934ef4744becbda3143d30c6604718871495a5e36c408431bf33d9c146889" "sha256:ed851c75d1e0e043cbf5ca9a8e1b13c4c90f3fbd863dacb01c0808e2b5204201"
], ],
"version": "==1.12.2" "version": "==1.12.3"
}, },
"chardet": { "chardet": {
"hashes": [ "hashes": [
...@@ -187,10 +187,10 @@ ...@@ -187,10 +187,10 @@
}, },
"defusedxml": { "defusedxml": {
"hashes": [ "hashes": [
"sha256:24d7f2f94f7f3cb6061acb215685e5125fbcdc40a857eff9de22518820b0a4f4", "sha256:6687150770438374ab581bb7a1b327a847dd9c5749e396102de3fad4e8a3ef93",
"sha256:702a91ade2968a82beb0db1e0766a6a273f33d4616a6ce8cde475d8e09853b20" "sha256:f684034d135af4c6cbb949b8a4d2ed61634515257a67299e5f940fbaa34377f5"
], ],
"version": "==0.5.0" "version": "==0.6.0"
}, },
"emails": { "emails": {
"hashes": [ "hashes": [
...@@ -247,11 +247,11 @@ ...@@ -247,11 +247,11 @@
}, },
"flask-sqlalchemy": { "flask-sqlalchemy": {
"hashes": [ "hashes": [
"sha256:3bc0fac969dd8c0ace01b32060f0c729565293302f0c4269beed154b46bec50b", "sha256:0c9609b0d72871c540a7945ea559c8fdf5455192d2db67219509aed680a3d45a",
"sha256:5971b9852b5888655f11db634e87725a9031e170f37c0ce7851cf83497f56e53" "sha256:8631bbea987bc3eb0f72b1f691d47bd37ceb795e73b59ab48586d76d75a7c605"
], ],
"index": "pypi", "index": "pypi",
"version": "==2.3.2" "version": "==2.4.0"
}, },
"git-url-parse": { "git-url-parse": {
"hashes": [ "hashes": [
...@@ -368,9 +368,9 @@ ...@@ -368,9 +368,9 @@
}, },
"mako": { "mako": {
"hashes": [ "hashes": [
"sha256:04092940c0df49b01f43daea4f5adcecd0e50ef6a4b222be5ac003d5d84b2843" "sha256:0728c404877cd4ca72c409c0ea372dc5f3b53fa1ad2bb434e1d216c0444ff1fd"
], ],
"version": "==1.0.8" "version": "==1.0.9"
}, },
"markupsafe": { "markupsafe": {
"hashes": [ "hashes": [
...@@ -451,23 +451,26 @@ ...@@ -451,23 +451,26 @@
"version": "==0.6.1" "version": "==0.6.1"
}, },
"muni-is-api": { "muni-is-api": {
"editable": true, "hashes": [
"git": "https://git@gitlab.fi.muni.cz/grp-kontr2/is-api.git", "sha256:4323bfc0c94cab97b6d295d7c9162dbbb127ee2128c825e29d19e5222090810c",
"ref": "5ea766116181e6abc093a069138619ea3df6d4a7" "sha256:c7fe43968653ddb9b2790f54f3011b481fa4ecdc2d9485967d29ba5f927dfceb"
],
"index": "pypi",
"version": "==0.2"
}, },
"pbr": { "pbr": {
"hashes": [ "hashes": [
"sha256:8257baf496c8522437e8a6cfe0f15e00aedc6c0e0e7c9d55eeeeab31e0853843", "sha256:6901995b9b686cb90cceba67a0f6d4d14ae003cd59bc12beb61549bdfbe3bc89",
"sha256:8c361cc353d988e4f5b998555c88098b9d5964c2e11acf7b0d21925a66bb5824" "sha256:d950c64aeea5456bbd147468382a5bb77fe692c13c9f00f0219814ce5b642755"
], ],
"version": "==5.1.3" "version": "==5.2.0"
}, },
"premailer": { "premailer": {
"hashes": [ "hashes": [
"sha256:27bde883086afdf66af6368b11a44b57622de185b24484a4b4aab641d5271fd9", "sha256:06f227702bd76a82da851f45af4c0831abfdf6555134faa8ffb1ea10e118f834",
"sha256:e636c4e98646582d81f12da1d7dfd012f6cecbd195e60c27292fea3f7bddc4d1" "sha256:e8ad94c32dc1b3f1fe21f6bf9912ec10149e99106d097463ac6955fb49f84668"
], ],
"version": "==3.4.0" "version": "==3.4.1"
}, },
"psycopg2-binary": { "psycopg2-binary": {
"hashes": [ "hashes": [
...@@ -533,9 +536,9 @@ ...@@ -533,9 +536,9 @@
}, },
"pyrsistent": { "pyrsistent": {
"hashes": [ "hashes": [
"sha256:3ca82748918eb65e2d89f222b702277099aca77e34843c5eb9d52451173970e2" "sha256:5403d37f4d55ff4572b5b5676890589f367a9569529c6f728c11046c4ea4272b"
], ],
"version": "==0.14.11" "version": "==0.15.1"
}, },
"python-dateutil": { "python-dateutil": {
"hashes": [ "hashes": [
...@@ -632,9 +635,9 @@ ...@@ -632,9 +635,9 @@
}, },
"sqlalchemy": { "sqlalchemy": {
"hashes": [ "hashes": [
"sha256:d5432832f91d200c3d8b473a266d59442d825f9ea744c467e68c5d9a9479fbce" "sha256:91c54ca8345008fceaec987e10924bf07dcab36c442925357e5a467b36a38319"
], ],
"version": "==1.3.2" "version": "==1.3.3"
}, },
"sqlalchemy-continuum": { "sqlalchemy-continuum": {
"hashes": [ "hashes": [
...@@ -658,10 +661,10 @@ ...@@ -658,10 +661,10 @@
}, },
"urllib3": { "urllib3": {
"hashes": [ "hashes": [
"sha256:61bf29cada3fc2fbefad4fdf059ea4bd1b4a86d2b6d15e1c7c0b582b9752fe39", "sha256:4c291ca23bbb55c76518905869ef34bdd5f0e46af7afe6861e8375643ffee1a0",
"sha256:de9529817c93f27c8ccbfead6985011db27bd0ddfcdb2d86f3f663385c6a9c22" "sha256:9a247273df709c4fedb38c711e44292304f73f39ab01beda9f6b9fc375669ac3"
], ],
"version": "==1.24.1" "version": "==1.24.2"
}, },
"vine": { "vine": {
"hashes": [ "hashes": [
...@@ -802,11 +805,11 @@ ...@@ -802,11 +805,11 @@
}, },
"ipython": { "ipython": {
"hashes": [ "hashes": [
"sha256:b038baa489c38f6d853a3cfc4c635b0cda66f2864d136fe8f40c1a6e334e2a6b", "sha256:54c5a8aa1eadd269ac210b96923688ccf01ebb2d0f21c18c3c717909583579a8",
"sha256:f5102c1cd67e399ec8ea66bcebe6e3968ea25a8977e53f012963e5affeb1fe38" "sha256:e840810029224b56cd0d9e7719dc3b39cf84d577f8ac686547c8ba7a06eeab26"
], ],
"index": "pypi", "index": "pypi",
"version": "==7.4.0" "version": "==7.5.0"
}, },
"ipython-genutils": { "ipython-genutils": {
"hashes": [ "hashes": [
...@@ -909,10 +912,10 @@ ...@@ -909,10 +912,10 @@
}, },
"pbr": { "pbr": {
"hashes": [ "hashes": [
"sha256:8257baf496c8522437e8a6cfe0f15e00aedc6c0e0e7c9d55eeeeab31e0853843", "sha256:6901995b9b686cb90cceba67a0f6d4d14ae003cd59bc12beb61549bdfbe3bc89",
"sha256:8c361cc353d988e4f5b998555c88098b9d5964c2e11acf7b0d21925a66bb5824" "sha256:d950c64aeea5456bbd147468382a5bb77fe692c13c9f00f0219814ce5b642755"
], ],
"version": "==5.1.3" "version": "==5.2.0"
}, },
"pexpect": { "pexpect": {
"hashes": [ "hashes": [
...@@ -996,19 +999,19 @@ ...@@ -996,19 +999,19 @@
}, },
"pytest": { "pytest": {
"hashes": [ "hashes": [
"sha256:13c5e9fb5ec5179995e9357111ab089af350d788cbc944c628f3cde72285809b", "sha256:3773f4c235918987d51daf1db66d51c99fac654c81d6f2f709a046ab446d5e5d",
"sha256:f21d2f1fb8200830dcbb5d8ec466a9c9120e20d8b53c7585d180125cce1d297a" "sha256:b7802283b70ca24d7119b32915efa7c409982f59913c1a6c0640aacf118b95f5"
], ],
"index": "pypi", "index": "pypi",
"version": "==4.4.0" "version": "==4.4.1"
}, },
"pytest-mock": { "pytest-mock": {
"hashes": [ "hashes": [
"sha256:330bfa1a71c9b6e84e2976f01d70d8a174f755e7f9dc5b22f4b7335992e1e98b", "sha256:43ce4e9dd5074993e7c021bb1c22cbb5363e612a2b5a76bc6d956775b10758b7",
"sha256:cea3983a1ebc88bf7c0fa1ed8c84e67b898bf71a320a49605bcb74f31e6cfd6a" "sha256:5bf5771b1db93beac965a7347dc81c675ec4090cb841e49d9d34637a25c30568"
], ],
"index": "pypi", "index": "pypi",
"version": "==1.10.3" "version": "==1.10.4"
}, },
"pyyaml": { "pyyaml": {
"hashes": [ "hashes": [
...@@ -1088,35 +1091,36 @@ ...@@ -1088,35 +1091,36 @@
}, },
"typed-ast": { "typed-ast": {
"hashes": [ "hashes": [
"sha256:035a54ede6ce1380599b2ce57844c6554666522e376bd111eb940fbc7c3dad23", "sha256:04894d268ba6eab7e093d43107869ad49e7b5ef40d1a94243ea49b352061b200",
"sha256:037c35f2741ce3a9ac0d55abfcd119133cbd821fffa4461397718287092d9d15", "sha256:16616ece19daddc586e499a3d2f560302c11f122b9c692bc216e821ae32aa0d0",
"sha256:049feae7e9f180b64efacbdc36b3af64a00393a47be22fa9cb6794e68d4e73d3", "sha256:252fdae740964b2d3cdfb3f84dcb4d6247a48a6abe2579e8029ab3be3cdc026c",
"sha256:19228f7940beafc1ba21a6e8e070e0b0bfd1457902a3a81709762b8b9039b88d", "sha256:2af80a373af123d0b9f44941a46df67ef0ff7a60f95872412a145f4500a7fc99",
"sha256:2ea681e91e3550a30c2265d2916f40a5f5d89b59469a20f3bad7d07adee0f7a6", "sha256:2c88d0a913229a06282b285f42a31e063c3bf9071ff65c5ea4c12acb6977c6a7",
"sha256:3a6b0a78af298d82323660df5497bcea0f0a4a25a0b003afd0ce5af049bd1f60", "sha256:2ea99c029ebd4b5a308d915cc7fb95b8e1201d60b065450d5d26deb65d3f2bc1",
"sha256:5385da8f3b801014504df0852bf83524599df890387a3c2b17b7caa3d78b1773", "sha256:3d2e3ab175fc097d2a51c7a0d3fda442f35ebcc93bb1d7bd9b95ad893e44c04d",
"sha256:606d8afa07eef77280c2bf84335e24390055b478392e1975f96286d99d0cb424", "sha256:4766dd695548a15ee766927bf883fb90c6ac8321be5a60c141f18628fb7f8da8",
"sha256:69245b5b23bbf7fb242c9f8f08493e9ecd7711f063259aefffaeb90595d62287", "sha256:56b6978798502ef66625a2e0f80cf923da64e328da8bbe16c1ff928c70c873de",
"sha256:6f6d839ab09830d59b7fa8fb6917023d8cb5498ee1f1dbd82d37db78eb76bc99", "sha256:5cddb6f8bce14325b2863f9d5ac5c51e07b71b462361fd815d1d7706d3a9d682",
"sha256:730888475f5ac0e37c1de4bd05eeb799fdb742697867f524dc8a4cd74bcecc23", "sha256:644ee788222d81555af543b70a1098f2025db38eaa99226f3a75a6854924d4db",
"sha256:9819b5162ffc121b9e334923c685b0d0826154e41dfe70b2ede2ce29034c71d8", "sha256:64cf762049fc4775efe6b27161467e76d0ba145862802a65eefc8879086fc6f8",
"sha256:9e60ef9426efab601dd9aa120e4ff560f4461cf8442e9c0a2b92548d52800699", "sha256:68c362848d9fb71d3c3e5f43c09974a0ae319144634e7a47db62f0f2a54a7fa7",
"sha256:af5fbdde0690c7da68e841d7fc2632345d570768ea7406a9434446d7b33b0ee1", "sha256:6c1f3c6f6635e611d58e467bf4371883568f0de9ccc4606f17048142dec14a1f",
"sha256:b64efdbdf3bbb1377562c179f167f3bf301251411eb5ac77dec6b7d32bcda463", "sha256:b213d4a02eec4ddf622f4d2fbc539f062af3788d1f332f028a2e19c42da53f15",
"sha256:bac5f444c118aeb456fac1b0b5d14c6a71ea2a42069b09c176f75e9bd4c186f6", "sha256:bb27d4e7805a7de0e35bd0cb1411bc85f807968b2b0539597a49a23b00a622ae",
"sha256:bda9068aafb73859491e13b99b682bd299c1b5fd50644d697533775828a28ee0", "sha256:c9d414512eaa417aadae7758bc118868cd2396b0e6138c1dd4fda96679c079d3",
"sha256:d659517ca116e6750101a1326107d3479028c5191f0ecee3c7203c50f5b915b0", "sha256:f0937165d1e25477b01081c4763d2d9cdc3b18af69cb259dd4f640c9b900fe5e",
"sha256:eddd3fb1f3e0f82e5915a899285a39ee34ce18fd25d89582bc89fc9fb16cd2c6" "sha256:fb96a6e2c11059ecf84e6741a319f93f683e440e341d4489c9b161eca251cf2a",
"sha256:fc71d2d6ae56a091a8d94f33ec9d0f2001d1cb1db423d8b4355debfe9ce689b7"
], ],
"markers": "implementation_name == 'cpython'", "markers": "implementation_name == 'cpython'",
"version": "==1.3.1" "version": "==1.3.4"
}, },
"urllib3": { "urllib3": {
"hashes": [ "hashes": [
"sha256:61bf29cada3fc2fbefad4fdf059ea4bd1b4a86d2b6d15e1c7c0b582b9752fe39", "sha256:4c291ca23bbb55c76518905869ef34bdd5f0e46af7afe6861e8375643ffee1a0",
"sha256:de9529817c93f27c8ccbfead6985011db27bd0ddfcdb2d86f3f663385c6a9c22" "sha256:9a247273df709c4fedb38c711e44292304f73f39ab01beda9f6b9fc375669ac3"
], ],
"version": "==1.24.1" "version": "==1.24.2"
}, },
"wcwidth": { "wcwidth": {
"hashes": [ "hashes": [
......
...@@ -86,5 +86,4 @@ def handle_portal_api_error(ex: PortalAPIError): ...@@ -86,5 +86,4 @@ def handle_portal_api_error(ex: PortalAPIError):
@rest_api.errorhandler(Exception) @rest_api.errorhandler(Exception)
def handle_default_exception(ex: Exception): def handle_default_exception(ex: Exception):
log.critical(f"[ERROR] Fatal error: {ex}") log.critical(f"[ERROR] Fatal error: {ex}")
return send_response({'message': ex}), 500 return send_response({'message': str(ex)}), 500
...@@ -332,7 +332,8 @@ class SubmissionISNotes(CustomResource): ...@@ -332,7 +332,8 @@ class SubmissionISNotes(CustomResource):
data = rest_helpers.require_data(action='update', resource='is-muni-notepad') data = rest_helpers.require_data(action='update', resource='is-muni-notepad')
log.info(f"[REST] Update notepads content {submission.log_name} by " log.info(f"[REST] Update notepads content {submission.log_name} by "
f"{self.client.log_name}: {data}") f"{self.client.log_name}: {data}")
return self.facades.submissions.is_write_notepad(submission=submission, data=data) self.facades.submissions.is_write_notepad(submission=submission, data=data)
return {'message': 'Success'}, 200
@submissions_namespace.route('/<string:sid>/review/<string:rid>') @submissions_namespace.route('/<string:sid>/review/<string:rid>')
...@@ -398,5 +399,3 @@ class SubmissionReviewItemVersions(CustomResource): ...@@ -398,5 +399,3 @@ class SubmissionReviewItemVersions(CustomResource):
item = self.find.review_item(rid) item = self.find.review_item(rid)
versions = item.versions.all() versions = item.versions.all()
return SCHEMAS.dump('review_items', versions) return SCHEMAS.dump('review_items', versions)
...@@ -316,7 +316,7 @@ def test_read_is_muni_notepad_for_submission(created_submission, client, portal_ ...@@ -316,7 +316,7 @@ def test_read_is_muni_notepad_for_submission(created_submission, client, portal_
is_wrapper: IsApiWrapper = portal_services.is_api(created_submission.course).is_api is_wrapper: IsApiWrapper = portal_services.is_api(created_submission.course).is_api
content = "Foo points *2" content = "Foo points *2"
operation = f";operace=blok-dej-obsah;zkratka={created_submission.project.codename};" \ operation = f";operace=blok-dej-obsah;zkratka={created_submission.project.codename};" \
f"uco=({created_submission.user.uco},);" f"uco={created_submission.user.uco};"
url = gen_url(is_wrapper=is_wrapper, operation=operation) url = gen_url(is_wrapper=is_wrapper, operation=operation)
responses.add(responses.GET, url, body=BLOCKS_CONTENT, status=200) responses.add(responses.GET, url, body=BLOCKS_CONTENT, status=200)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment