Code Monkey home page Code Monkey logo

Comments (18)

DipeshSharma25 avatar DipeshSharma25 commented on May 23, 2024 1

thanks a lot @soachishti it worked.....

from autograder.

soachishti avatar soachishti commented on May 23, 2024

Hi @DipeshSharma25, Can you share more details of the error or stack trace. It would easier to debug that way.

from autograder.

DipeshSharma25 avatar DipeshSharma25 commented on May 23, 2024

[
Screenshot (29)
Screenshot (30)

](url)

from autograder.

DipeshSharma25 avatar DipeshSharma25 commented on May 23, 2024

these errors I tried to debug it. test-results.log file is empty always

from autograder.

DipeshSharma25 avatar DipeshSharma25 commented on May 23, 2024

@soachishti

from autograder.

DipeshSharma25 avatar DipeshSharma25 commented on May 23, 2024

TODO: Disable networking for submission file

# Source: https://gist.github.com/hangtwenty/9200597e3be274c79896
# Source: https://github.com/miketheman/pytest-socket
#import socket
#def guard(*args, **kwargs):
#    raise Exception("I told you not to use the Internet!")
#socket.socket = guard
#os.nice()
#os.setuid()

in this section what to do I didn't get exactly. is this a cause of the error

from autograder.

soachishti avatar soachishti commented on May 23, 2024

image

Are you getting any thing in this directory?

from autograder.

soachishti avatar soachishti commented on May 23, 2024

TODO: Disable networking for submission file

# Source: https://gist.github.com/hangtwenty/9200597e3be274c79896
# Source: https://github.com/miketheman/pytest-socket
#import socket
#def guard(*args, **kwargs):
#    raise Exception("I told you not to use the Internet!")
#socket.socket = guard
#os.nice()
#os.setuid()

in this section what to do I didn't get exactly. is this a cause of the error

Ignore it. This is just a commented code.

from autograder.

DipeshSharma25 avatar DipeshSharma25 commented on May 23, 2024

no, I am not getting anything in that dictionary. if i add a print statement after that import pytest statement then that print is available in test-result.log file

from autograder.

soachishti avatar soachishti commented on May 23, 2024

I am expecting assignment's zip file content there, on which pytest is executed. As this folder is empty pytest isn't generated any result.

Can you please confirm that view.py [L327] is unzipping assignment's content in the directory properly.

zip_file = zipfile.ZipFile(submission.submission_file.url, 'r')

from autograder.

DipeshSharma25 avatar DipeshSharma25 commented on May 23, 2024

yes it is there

from autograder.

soachishti avatar soachishti commented on May 23, 2024

Is pytest working in that folder?

from autograder.

DipeshSharma25 avatar DipeshSharma25 commented on May 23, 2024

no that is a problem pytest is not working in that problem

from autograder.

DipeshSharma25 avatar DipeshSharma25 commented on May 23, 2024

i tried to change a little code in run_studen_tests() [
Screenshot (31)
then pytest worked in that folder but giving an error after testing database access is not allowed
Screenshot (32)

](url)

from autograder.

DipeshSharma25 avatar DipeshSharma25 commented on May 23, 2024

but in run_test() pytest is not working

from autograder.

DipeshSharma25 avatar DipeshSharma25 commented on May 23, 2024

Process Process-1: this is main error as per my debugging @soachishti

from autograder.

soachishti avatar soachishti commented on May 23, 2024

This error is showing different variant of pytest. Please remove "pytest-django" and install "pytest", and try again with that.

image

from autograder.

DipeshSharma25 avatar DipeshSharma25 commented on May 23, 2024

okh

from autograder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.